.report-container .page-header {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.report-overview {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.overview-card {
    background: #f2f2f7;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.overview-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #6e6e73;
}

.overview-card strong {
    font-size: 1.4rem;
    color: #1c1c1e;
}

.report-table-wrapper {
    margin-top: 2rem;
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(60, 64, 67, 0.08);
    overflow-x: auto;
}

.modern-report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 960px;
}

.modern-report-table thead th {
    background: linear-gradient(135deg, #f5f5f7 0%, #e9ecf3 100%);
    color: #1c1c1e;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    text-align: right;
    border-bottom: 1px solid #d1d1d6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modern-report-table tbody tr {
    transition: background 0.2s;
}

.modern-report-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.modern-report-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.08);
}

.modern-report-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e5ea;
    vertical-align: top;
    font-size: 0.95rem;
    color: #1c1c1e;
}

.modern-report-table td:last-child,
.modern-report-table th:last-child {
    border-left: none;
}

.doctor-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.doctor-cell strong {
    font-size: 1.05rem;
}

.doctor-range {
    font-size: 0.8rem;
    color: #8e8e93;
}

.number-cell {
    font-weight: 600;
    text-align: center;
}

.success-text {
    color: #34c759;
}

.info-text {
    color: #5ac8fa;
}

.diff-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    background: #f2f2f7;
    color: #1c1c1e;
}

.diff-pill strong {
    font-size: 1rem;
}

.diff-pill.diff-positive {
    background: rgba(52, 199, 89, 0.15);
    color: #1f8f45;
}

.diff-pill.diff-negative {
    background: rgba(255, 59, 48, 0.15);
    color: #b10f00;
}

.diff-pill.diff-neutral {
    background: rgba(0, 122, 255, 0.12);
    color: #0f5cd1;
}

.table-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.table-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f4f4f6;
    color: #1c1c1e;
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.table-chip strong {
    font-size: 0.9rem;
    color: #000000;
}

.empty-state {
    display: inline-block;
    font-size: 0.85rem;
    color: #8e8e93;
}

.empty-state-card {
    margin-top: 2rem;
    padding: 2.5rem;
    background: #f2f2f7;
    border-radius: 18px;
    border: 1px dashed #d1d1d6;
    text-align: center;
    color: #8e8e93;
    font-weight: 500;
}

@media (max-width: 768px) {
    .modern-report-table {
        min-width: 720px;
    }

    .modern-report-table thead th,
    .modern-report-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .table-chip {
        font-size: 0.75rem;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .navbar,
    .nav-user,
    .report-actions,
    .filter-card,
    .btn,
    .alert {
        display: none !important;
    }

    .container {
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .report-table-wrapper {
        border: none;
        box-shadow: none;
    }

    .modern-report-table thead th {
        background: #f5f5f5;
        border-bottom: 1px solid #c7c7cc;
    }

    .modern-report-table td {
        border-bottom: 1px solid #c7c7cc;
    }

    .diff-pill {
        border: 1px solid #c7c7cc;
        background: transparent;
    }
}
/* iOS-Style Dental Clinic Management System CSS */

/* Import Noto Naskh Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* CSS Variables - iOS Colors */
:root {
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ios-orange: #FF9500;
    --ios-yellow: #FFCC00;
    --ios-purple: #AF52DE;
    --ios-teal: #5AC8FA;
    --ios-pink: #FF2D55;

    --bg-primary: #F2F2F7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F9F9F9;

    --text-primary: #000000;
    --text-secondary: #6C6C70;
    --text-tertiary: #AEAEB2;

    --border-color: #E5E5EA;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Naskh Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #3498db;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo */
.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.logo:hover {
    transform: scale(1.05);
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #5AC8FA;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    margin: 0;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.25);
}

/* Active link style */
.nav-link.active {
    background: #3498db;
    color: #ffffff;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: 0.3s;
    border-radius: 2px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--ios-blue);
    color: white;
}

.btn-primary:hover {
    background: #0051D5;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #E5E5EA;
}

.btn-danger {
    background: var(--ios-red);
    color: white;
}

.btn-danger:hover {
    background: #D70015;
}

.btn-outline-danger {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 59, 48, 0.7);
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: var(--ios-red);
    color: white;
    border-color: var(--ios-red);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 6px 10px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    border-radius: var(--radius-sm);
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* Cards */
.form-card,
.filter-card,
.table-card,
.chart-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-card-full {
    grid-column: 1 / -1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ios-blue);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 24px;
}

.quick-actions h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.action-btn {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn.primary {
    background: var(--ios-blue);
    color: white;
}

.action-btn .icon {
    font-size: 32px;
}

/* Forms */
.form-section {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border-right: 4px solid;
    background: var(--bg-tertiary);
}

.form-section .section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Color-coded sections */
.form-section-blue {
    border-right-color: var(--ios-blue);
    background: rgba(0, 122, 255, 0.03);
}

.form-section-blue .section-title {
    color: var(--ios-blue);
}

.form-section-purple {
    border-right-color: var(--ios-purple);
    background: rgba(175, 82, 222, 0.03);
}

.form-section-purple .section-title {
    color: var(--ios-purple);
}

.form-section-orange {
    border-right-color: var(--ios-orange);
    background: rgba(255, 149, 0, 0.03);
}

.form-section-orange .section-title {
    color: var(--ios-orange);
}

.form-section-green {
    border-right-color: var(--ios-green);
    background: rgba(52, 199, 89, 0.03);
}

.form-section-green .section-title {
    color: var(--ios-green);
}

.form-section-teal {
    border-right-color: var(--ios-teal);
    background: rgba(90, 200, 250, 0.03);
}

.form-section-teal .section-title {
    color: var(--ios-teal);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    background: var(--bg-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ios-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.required {
    color: var(--ios-red);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.radio-label:hover {
    background: var(--bg-primary);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

.data-table thead {
    background: var(--bg-primary);
}

.data-table th {
    padding: 14px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.table-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.badge-success {
    background: rgba(52, 199, 89, 0.15);
    color: var(--ios-green);
}

.badge-info {
    background: rgba(90, 200, 250, 0.15);
    color: var(--ios-teal);
}

.badge-danger {
    background: rgba(255, 59, 48, 0.15);
    color: var(--ios-red);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: var(--ios-green);
    border-right: 4px solid var(--ios-green);
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: var(--ios-red);
    border-right: 4px solid var(--ios-red);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ios-blue) 0%, var(--ios-purple) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* User Management */
.user-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.management-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.management-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Filter Form */
.filter-form {
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Action Buttons Small */
.action-buttons-small {
    display: flex;
    gap: 8px;
}

/* Recent Section */
.recent-section {
    margin-top: 32px;
}

.recent-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        height: 60px;
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        gap: 8px;
        margin: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: right;
        padding: 12px 20px;
    }

    .nav-user {
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 15px;
        margin-top: 10px;
        padding-right: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .user-management-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .filter-actions {
        flex-direction: column;
    }

    .login-card {
        padding: 24px;
    }

    .container {
        padding: 12px;
    }

    .form-section {
        padding: 16px;
    }

    .form-section .section-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 20px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        font-size: 32px;
        width: 50px;
        height: 50px;
    }

    .stat-info h3 {
        font-size: 24px;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .filter-card,
    .form-actions,
    .action-buttons-small,
    .btn {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card,
.table-card,
.chart-card,
.stat-card {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Text Utilities */
.text-muted {
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}
