/* Modern Medical Reports System - Contemporary Design */

:root {
    --primary-color: #4aa2ca;
    --primary-dark: #46b3e5 ;
    --secondary-color: #6b7280;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --light-bg: #f9fafb;
    --dark-bg: #111827;
    --border-color: #e5e7eb;    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

/* Modern Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: white;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-left-color: white;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Collapsible Navigation Menu */
.sidebar-nav .nav-link-toggle {
    cursor: pointer;
    user-select: none;
}

.sidebar-nav .nav-link-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    margin-left: auto;
}

.sidebar-nav .nav-link-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-nav .sub-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-nav .sub-menu .nav-item {
    margin-bottom: 0;
}

.sidebar-nav .sub-nav-link {
    padding-left: 3rem !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
}

.sidebar-nav .sub-nav-link:hover {
    background-color: rgba(74, 162, 202, 0.1);
    color: var(--primary-color);
}

.sidebar-nav .sub-nav-link.active {
    background-color: rgba(74, 162, 202, 0.15);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

/* Main Content with Sidebar */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.main-content.no-sidebar {
    margin-left: 0;
}

/* Sidebar Toggle */
.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
}

/* Dashboard Layout */
.dashboard-container {
    padding: .5rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Header Profile Section */
.header-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.profile-dropdown {
    position: relative;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.profile-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-menu-header h6 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.profile-menu-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.profile-menu-item i {
    width: 16px;
    color: var(--text-secondary);
}

/* Modern Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0 !important;
    padding: .5rem;
    font-weight: 600;
}

/* Modern Buttons */
.btn {
    border-radius: 0.75rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #b45309 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
    color: white;
}

/* Modern Forms */
.form-control {
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Modern Tables */
.table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.05);
}

/* Modern Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modern Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b91c1c 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #b45309 100%);
    color: white;
}

/* Modern Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.dashboard-card .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.dashboard-card .card-icon.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.dashboard-card .card-icon.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #047857 100%);
}

.dashboard-card .card-icon.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #b45309 100%);
}

.dashboard-card .card-icon.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chart-header h5 i {
    color: var(--primary-color);
}

/* Enhanced Duration Filters - Dropdown Style */
.duration-filters {
    display: flex;
    align-items: center;
}

.duration-filters .dropdown {
    min-width: 140px;
}

.duration-filters .form-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.duration-filters .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.duration-filters .form-select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.duration-filters .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    outline: none;
}

.duration-filters .form-select option {
    padding: 0.5rem;
    font-weight: 500;
}

/* Chart Loading State */
.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 1rem;
}

.chart-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

.chart-loading p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Chart Footer */
.chart-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.chart-footer small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chart-footer i {
    color: var(--primary-color);
}

/* Enhanced Chart Canvas */
.chart-container canvas {
    border-radius: 0.5rem;
}

/* Modern Modal */
.modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    border: none;
}

.modal-title {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .login-card {
        padding: 2rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .table-responsive {
        border-radius: 1rem;
        overflow: hidden;
    }
    
    .header-profile {
        gap: 0.5rem;
    }
    
    .notification-icon,
    .profile-icon {
        width: 35px;
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-content {
        background: white;
        padding: 2rem;
        font-family: 'Inter', sans-serif;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
} 

/* Enhanced Split Login Layout */
.login-split-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
}

/* Left Side - Banner */
.login-banner {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 500px;
}

.banner-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.banner-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

.banner-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

/* Right Side - Login Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
}

.login-form-section .login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-form-section .login-header h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-form-section .login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Enhanced form styling for split layout */
.login-form-section .form-control {
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.login-form-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(70, 179, 229, 0.1);
    outline: none;
}

.login-form-section .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form-section .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-form-section .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive Design for Split Login */
@media (max-width: 1024px) {
    .login-split-container {
        flex-direction: column;
    }
    
    .login-banner {
        padding: 2rem;
        min-height: 40vh;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banner-stats {
        gap: 1rem;
    }
    
    .login-form-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .login-banner {
        padding: 1.5rem;
        min-height: 35vh;
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-logo {
        font-size: 3rem;
    }
    
    .login-form-section {
        padding: 1.5rem;
    }
    
    .login-form-container {
        max-width: 100%;
    }
    
    .banner-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .banner-stats {
        flex-direction: column;
        gap: 1rem;
    }
} 

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: var(--shadow-lg);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fab-button:hover::before {
    opacity: 1;
}

.fab-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-bg);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.fab-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--dark-bg);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.fab:hover .fab-label {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* FAB with different colors */
.fab-button.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #10b981 100%);
}

.fab-button.success:hover {
    background: linear-gradient(135deg, #10b981 0%, var(--success-color) 100%);
}

.fab-button.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f59e0b 100%);
}

.fab-button.warning:hover {
    background: linear-gradient(135deg, #f59e0b 0%, var(--warning-color) 100%);
}

.fab-button.danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ef4444 100%);
}

.fab-button.danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, var(--danger-color) 100%);
}

/* FAB animations */
@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 162, 202, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 162, 202, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 162, 202, 0);
    }
}

.fab-button.pulse {
    animation: fabPulse 2s infinite;
}

/* Responsive FAB */
@media (max-width: 768px) {
    .fab {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .fab-label {
        display: none;
    }
}

/* FAB for different positions */
.fab.fab-top-right {
    top: 30px;
    right: 30px;
    bottom: auto;
}

.fab.fab-bottom-left {
    bottom: 30px;
    left: 30px;
    right: auto;
}

.fab.fab-top-left {
    top: 30px;
    left: 30px;
    bottom: auto;
    right: auto;
}

/* FAB with multiple buttons */
.fab-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
}

.fab-group .fab-button {
    margin-bottom: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-group:hover .fab-button {
    opacity: 1;
    transform: scale(1);
}

.fab-group .fab-button:last-child {
    margin-bottom: 0;
}

/* FAB with backdrop */
.fab-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-backdrop.show {
    opacity: 1;
    visibility: visible;
} 

/* Patient Search and Progress Styles */
.patient-search-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
}

.patient-progress-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
}

.progress-summary-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

.chart-container canvas {
    max-height: 100%;
}

.patient-info-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
}

.patient-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.patient-stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.patient-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.patient-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive adjustments for patient pages */
@media (max-width: 768px) {
    .patient-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .patient-info-header .row {
        text-align: center;
    }
    
    .patient-info-header .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Enhanced table styles for patient reports */
.patient-reports-table th {
    background: var(--light-bg);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.patient-reports-table td {
    vertical-align: middle;
}

.progress-change-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Search form enhancements */
.patient-search-form {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.search-type-selector {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

.search-type-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 162, 202, 0.25);
}

/* Quick action buttons */
.quick-action-btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Chart tooltips and legends */
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Patient search results enhancement */
.search-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem 0.75rem 0 0;
}

.search-results-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Enhanced mobile responsiveness */
@media (max-width: 576px) {
    .patient-search-form .row {
        margin: 0;
    }
    
    .patient-search-form .col-md-4,
    .patient-search-form .col-md-3 {
        padding: 0.5rem;
    }
    
    .search-results-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
    }
    
    .patient-info-header .row > div {
        margin-bottom: 1rem;
    }
} 

/* Responsive Duration Filters */
@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .duration-filters .dropdown {
        min-width: 120px;
    }
    
    .duration-filters .form-select {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .duration-filters .dropdown {
        width: 100%;
        min-width: auto;
    }
    
    .duration-filters .form-select {
        width: 100%;
    }
} 