agent_tracker/static/style.css
2025-09-05 13:41:33 -05:00

405 lines
No EOL
7.6 KiB
CSS

:root {
--primary-color: #f3ae3e;
--secondary-color: #f3ae3e;
--accent-color: #f3ae3e;
--text-dark: #2d3748;
--text-light: #718096;
--bg-light: #f7fafc;
--bg-white: #ffffff;
--border-color: #e2e8f0;
--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
/* Microsoft Brand Colors */
--ms-blue: #f3ae3e;
--ms-blue-dark: #f3ae3e;
--ms-gray: #5e5e5e;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: var(--text-dark);
font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 2rem auto;
padding: 2rem;
background-color: var(--bg-white);
border-radius: 20px;
box-shadow: var(--shadow-lg);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.navbar {
background: rgba(255, 255, 255, 0.95) !important;
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
box-shadow: var(--shadow);
}
.navbar-brand {
font-weight: 700;
font-size: 1.5rem;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-link {
font-weight: 500;
transition: all 0.3s ease;
border-radius: 8px;
margin: 0 4px;
padding: 8px 16px !important;
}
.nav-link:hover {
background-color: var(--bg-light);
transform: translateY(-1px);
}
.nav-link.active {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white !important;
}
.table {
border-radius: 12px;
overflow: hidden;
box-shadow: var(--shadow);
border: none;
margin-top: 2rem;
}
.table thead th {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
font-weight: 600;
border: none;
padding: 1rem;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.table tbody tr {
transition: all 0.3s ease;
border: none;
}
.table tbody tr:hover {
background-color: var(--bg-light);
transform: scale(1.01);
}
.table tbody td {
padding: 1rem;
border-color: var(--border-color);
vertical-align: middle;
}
.btn {
border-radius: 8px;
font-weight: 500;
padding: 8px 20px;
transition: all 0.3s ease;
border: none;
text-transform: uppercase;
font-size: 0.85rem;
letter-spacing: 0.5px;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border: none;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.btn-warning {
background: linear-gradient(135deg, #ffecd2, #fcb69f);
border: none;
color: var(--text-dark);
}
.btn-warning:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
color: var(--text-dark);
}
.btn-danger {
background: linear-gradient(135deg, #ff9a9e, #fecfef);
border: none;
color: var(--text-dark);
}
.btn-danger:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
color: var(--text-dark);
}
.btn-sm {
padding: 6px 12px;
margin: 0 2px;
}
.form-control {
border-radius: 8px;
border: 2px solid var(--border-color);
padding: 12px;
transition: all 0.3s ease;
font-size: 1rem;
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(243, 174, 62, 0.1);
}
.form-label {
font-weight: 600;
color: var(--text-dark);
margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
color: var(--text-dark);
font-weight: 700;
margin-bottom: 1rem;
}
h2 {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: white;
background-clip: text;
font-size: 2.5rem;
text-align: center;
margin-bottom: 2rem;
}
.alert {
border-radius: 12px;
border: none;
padding: 1rem;
margin-bottom: 1.5rem;
}
.card {
border-radius: 16px;
border: none;
box-shadow: var(--shadow);
transition: all 0.3s ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
.badge {
border-radius: 20px;
padding: 6px 12px;
font-weight: 500;
font-size: 0.75rem;
}
.text-muted {
color: var(--text-light) !important;
}
@media (max-width: 768px) {
.container {
margin: 1rem;
padding: 1rem;
border-radius: 16px;
}
h2 {
font-size: 2rem;
}
.table-responsive {
border-radius: 12px;
}
}
/* Microsoft Authentication Branding */
.btn-microsoft {
background-color: var(--ms-blue);
border-color: var(--ms-blue);
color: white;
font-weight: 500;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.btn-microsoft:hover {
background-color: var(--ms-blue-dark);
border-color: var(--ms-blue-dark);
color: white;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(243, 174, 62, 0.3);
}
.btn-microsoft:focus {
background-color: var(--ms-blue-dark);
border-color: var(--ms-blue-dark);
color: white;
box-shadow: 0 0 0 3px rgba(243, 174, 62, 0.2);
}
.btn-microsoft:active {
background-color: var(--ms-blue-dark);
border-color: var(--ms-blue-dark);
color: white;
transform: translateY(0);
}
/* Microsoft Login Divider */
.auth-divider {
position: relative;
text-align: center;
margin: 1.5rem 0;
}
.auth-divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background-color: var(--border-color);
}
.auth-divider-text {
background-color: white;
padding: 0 1rem;
color: var(--text-light);
font-size: 0.9rem;
position: relative;
z-index: 1;
}
/* Admin/Local Auth Section Styling */
.local-auth-section {
border-top: 1px solid var(--border-color);
padding-top: 1.5rem;
margin-top: 1.5rem;
}
.local-auth-section .form-label {
color: var(--ms-gray);
}
.local-auth-section .btn-primary {
background: linear-gradient(135deg, var(--ms-gray), #4a4a4a);
border-color: var(--ms-gray);
}
/* Modal Centering and Positioning Fixes */
.modal {
padding: 0 !important;
}
.modal-dialog {
margin: 1.75rem auto;
max-width: calc(100% - 3.5rem);
display: flex;
align-items: center;
min-height: calc(100vh - 3.5rem);
}
.modal-dialog-centered {
display: flex;
align-items: center;
min-height: calc(100vh - 3.5rem);
}
.modal-content {
border-radius: 16px;
border: none;
box-shadow: var(--shadow-lg);
width: 100%;
position: relative;
}
.modal-header {
border-radius: 16px 16px 0 0;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border-bottom: none;
padding: 1.25rem 1.5rem;
}
.modal-title {
font-weight: 600;
font-size: 1.25rem;
}
.modal-header .btn-close {
filter: invert(1);
opacity: 0.8;
}
.modal-header .btn-close:hover {
opacity: 1;
}
.modal-body {
padding: 1.5rem;
max-height: 70vh;
overflow-y: auto;
}
.modal-footer {
border-top: 1px solid var(--border-color);
border-radius: 0 0 16px 16px;
padding: 1rem 1.5rem;
}
/* Ensure modals are centered on smaller screens */
@media (max-width: 768px) {
.modal-dialog {
margin: 1rem;
max-width: calc(100% - 2rem);
min-height: calc(100vh - 2rem);
}
.modal-body {
max-height: 60vh;
padding: 1rem;
}
}
/* Ensure modal backdrop doesn't interfere */
.modal-backdrop {
background-color: rgba(0, 0, 0, 0.6);
}
/* Fix page title readability */
.container h2 {
-webkit-text-fill-color: var(--text-dark);
color: var(--text-dark);
}