/**
 * Premium Medical Dashboard CSS - RTL Persian, Responsive, No Emojis
 * File: css/style.css
 */

/* Reset & Base */
                /* ========== فونت ========== */
                @font-face {
                    font-family: 'Parastoo';
                    src: url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.eot');
                    src: url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.eot?#iefix') format('embedded-opentype'),
                        url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.woff') format('woff'),
                        url('../font/parastoo-font-v1.0.0-alpha5/web/Parastoo.ttf') format('truetype');
                    font-weight: normal;
                    font-style: normal;
                }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
font-family: 'Parastoo', Tahoma, sans-serif;    background: linear-gradient(135deg, #035dd1 0%, #4b6ea2 100%);
    direction: rtl;
    color: #333;
    line-height: 1.6;
}

/* Login Page Styles */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0263b3 0%, #0160ad 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 40px 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 24px;
    color: black;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: right;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}

.login-footer {
    margin-top: 30px;
    color: var(--secondary-color);
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
}

/* Sidebar Styles */
/* Sidebar Styles - Enhanced Scrolling */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a1c2e 0%, #2d2b4a 100%);
    color: white;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
    z-index: 1000;
    /* Enhanced smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling to match your site */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox scrollbar styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1a1c2e 0%, #2d2b4a 100%);
    z-index: 10;
}

.sidebar-header h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.7;
}

.sidebar-nav {
    padding: 20px 0 30px 0;
    /* Add padding at bottom for better scroll experience */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-right-color: var(--primary-color);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-right-color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

/* Optional: Add a scroll shadow effect when scrolled */
.sidebar {
    background-attachment: local;
    background: linear-gradient(180deg, #1a1c2e 0%, #2d2b4a 100%);
}

/* Smooth scroll indicator (optional) */
.sidebar::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(45, 43, 74, 0.9), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.scrolled::after {
    opacity: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-right: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-right-color: var(--primary-color);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-right-color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 25px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgb(230, 230, 230);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);

}

.page-header h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #c82333;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-link {
    background: none;
    color: var(--primary-color);
    text-decoration: underline;
}

/* Forms */
.form-container {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 8px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.date-selects {
    display: flex;
    gap: 10px;
}

.date-selects select {
    flex: 1;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    overflow-y: auto;
    /* اضافه  */
    max-height: 600px;
    /* اضافه  - حداکثر ارتفاع */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    /* حذف کن: max-height, overflow-y, display: block */
}

.data-table thead {
    background: var(--primary-color);
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.data-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

.data-table th {
    font-weight: 600;
}

/* اختیاری: فیکس کردن هدر هنگام اسکرول */
.table-responsive thead th {
    position: sticky;
    top: 0;
    background: var(--primary-color);
    z-index: 10;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-icon.delete {
    color: var(--danger-color);
}

.btn-icon:hover {
    background: #f0f0f0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-scheduled {
    background: #cff4fc;
    color: #055160;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.status-active {
    background: #d1e7dd;
    color: #0f5132;
}

.status-inactive {
    background: #f8d7da;
    color: #842029;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border-right: 4px solid #198754;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
    border-right: 4px solid #dc3545;
}

/* Search Box */
.search-box {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.search-box form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box .form-control {
    flex: 1;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.quick-actions h2 {
    margin-bottom: 20px;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.today-appointments {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
}

.today-appointments h2 {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Date Navigation */
.date-navigation {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.date-selector {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.date-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Patient Search Results */
.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 2px);
    margin-top: 2px;
    display: none;
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: #f0f0f0;
}

.patient-info-box {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-right: 4px solid var(--primary-color);
}

.new-appointment {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 30px;
}

.new-appointment h3 {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .search-box form {
        flex-direction: column;
    }

    .date-selector {
        flex-direction: column;
    }

    .date-selector select,
    .date-selector button {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-right: 240px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .btn,
    .action-buttons,
    .quick-actions,
    .date-navigation,
    .search-box {
        display: none;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }

    .data-table {
        border: 1px solid #ddd;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/**
 * Premium Medical Dashboard CSS - Responsive Sidebar & Mobile Menu
 * File: css/style.css - REPLACE the sidebar/navigation section with this
 */

/* ==================== SIDEBAR - FULLY RESPONSIVE ==================== */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--light-bg);
    position: relative;
}

/* Sidebar - Desktop */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a1c2e 0%, #2d2b4a 100%);
    color: white;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #1a1c2e 0%, #2d2b4a 100%);
    z-index: 100;
}

.sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.sidebar-header p {
    font-size: 11px;
    opacity: 0.7;
}

.sidebar-nav {
    padding: 20px 0 30px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    margin: 2px 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-right-color: var(--primary-color);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-right-color: var(--primary-color);
}

.nav-icon {
    font-size: 20px;
    min-width: 28px;
    text-align: center;
}

.nav-item span:not(.nav-icon) {
    white-space: nowrap;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
    padding: 20px;
}

/* ==================== MOBILE MENU BUTTON ==================== */
.mobile-menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-right: 260px;
    }

    .nav-item span:not(.nav-icon) {
        font-size: 13px;
    }

    .sidebar-header h2 {
        font-size: 16px;
    }
}

/* Mobile & Tablet Portrait */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        width: 280px;
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    }

    .main-content {
        margin-right: 0;
        padding: 15px;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar-header h2 {
        font-size: 18px;
    }

    .nav-item {
        padding: 14px 20px;
    }

    .nav-icon {
        font-size: 22px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .sidebar {
        width: 85%;
        max-width: 300px;
    }

    .main-content {
        padding: 12px;
    }

    .mobile-menu-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-icon {
        padding: 5px 8px;
    }

    /* Make tables horizontally scrollable on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 600px;
    }

    .date-selector {
        flex-direction: column;
        width: 100%;
    }

    .date-selector select,
    .date-selector button {
        width: 100%;
        margin-bottom: 8px;
    }

    .search-box form {
        flex-direction: column;
    }

    .search-box .form-control,
    .search-box .btn {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 260px;
    }

    .sidebar-header {
        padding: 15px;
    }

    .sidebar-header h2 {
        font-size: 16px;
    }

    .nav-item {
        padding: 10px 15px;
    }

    .main-content {
        padding: 10px;
    }
}

/* Ensure no overflow on any element */
* {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

img,
table,
iframe,
video {
    max-width: 100%;
    height: auto;
}

/* Table container for horizontal scroll */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Prevent overflow on form elements */
.form-control,
textarea,
select,
input {
    max-width: 100%;
}

/* Ensure proper scrolling on all elements */
.main-content,
.sidebar,
.table-responsive,
.modal-body {
    -webkit-overflow-scrolling: touch;
}






/*vistit.php styles */
/**
 * استایل‌های اصلی سیستم
 * File: css/style.css
 * 
 * آپدیت: اضافه کردن استایل‌های جدید برای ماژول ویزیت گوش
 */

/* ... (استایل‌های موجود بدون تغییر) ... */

/* ==================== استایل‌های جدید برای ماژول ویزیت ==================== */

/* کارت‌های تخصص در صفحه اصلی ویزیت */
.specialty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.specialty-card {
    background: white;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.specialty-card:hover:not(.disabled) {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.specialty-card .icon {
    font-size: 52px;
    display: block;
    margin-bottom: 12px;
}

.specialty-card .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.specialty-card .subtitle {
    font-size: 13px;
    color: #7f8c8d;
}

.specialty-card .badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
}

.specialty-card .badge.active {
    background: #27ae60;
    color: white;
}

.specialty-card .badge.inactive {
    background: #95a5a6;
    color: white;
}

.specialty-card .coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* رنگ‌بندی کارت‌های تخصص */
.specialty-card.ear {
    border-color: #2c7be5;
    background: linear-gradient(135deg, #ebf5fb, #d6eaf8);
}

.specialty-card.ear:hover:not(.disabled) {
    border-color: #1a5bbf;
    background: linear-gradient(135deg, #d6eaf8, #aed6f1);
}

.specialty-card.throat {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fdedec, #fadbd8);
}

.specialty-card.nose {
    border-color: #27ae60;
    background: linear-gradient(135deg, #eafaf1, #d5f5e3);
}

.specialty-card.cardiology {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
}

.specialty-card.dermatology {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.specialty-card.orthopedics {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.specialty-card.neurology {
    border-color: #1565c0;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.specialty-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.specialty-card.disabled:hover {
    transform: none;
}

/* استایل‌های ماژول گوش */
.module-header {
    background: linear-gradient(135deg, #2c7be5, #1a5bbf);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.module-header h1 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.module-header h1 img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.module-header .subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-back img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* استایل‌های فرم ویزیت */
.visit-section {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.visit-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c7be5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visit-section h3 img {
    width: 24px;
    height: 24px;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .specialty-cards {
        grid-template-columns: 1fr;
    }

    .module-header {
        flex-direction: column;
        align-items: stretch;
    }

    .visit-section {
        padding: 15px;
    }

    /* دکمه ناوبری موبایل */
    .nav-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #2c7be5;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(44, 123, 229, 0.4);
        cursor: pointer;
        display: none;
        z-index: 1001;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle img {
        width: 30px;
        height: 30px;
        filter: brightness(0) invert(1);
    }
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100%;
        background: #ffffff;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

/* استایل‌های جدول تاریخچه */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* استایل‌های صفحات آمار */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid #e9ecef;
    transition: 0.3s;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stats-card .number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.stats-card .number.primary {
    color: #2c7be5;
}

.stats-card .number.success {
    color: #27ae60;
}

.stats-card .number.warning {
    color: #f39c12;
}

.stats-card .number.danger {
    color: #e74c3c;
}

.stats-card .number.purple {
    color: #8e44ad;
}

.stats-card .label {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}





.sidebar-header{
    padding:0;
    overflow:hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Background - position it absolutely with image */
.sidebar-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../includes/img/23.jpg'); /* Adjust based on CSS file location */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Top section with logo and title */
.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    position: relative;
    z-index: 1;
    color: #fff;
}

/* Logo image */
.sidebar-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* Title */
.sidebar-system-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

/* White card - AT BOTTOM */
.sidebar-profile {
    background:#fff;
    width:88%;
    margin-top: auto;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px;
    box-shadow:0 6px 18px rgba(0,0,0,.12);
    position: relative;
    z-index: 1;
}

/* clinic name */
.profile-info{
    flex:1;
    text-align:center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../includes/img/24.jpg'); /* Adjust based on CSS file location */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
        border-radius:16px;

}

.profile-info h3{
    margin:0;
    font-size:15px;
    font-weight:700;
    color:#222;
}

/* avatar */
.profile-avatar{
    width:30px;
    height:30px;
    background:#dfe8ff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
 
    flex-shrink: 0;
}

.profile-avatar img{
    width:40%;
    height:40%;
    object-fit:cover;
    
}

.sidebar-header-link{
    display:block;
    color:inherit;
    text-decoration:none;
    height: 100%;
}

/* ========== RESPONSIVE STYLES ========== */

/* iPad Air & similar tablets (820x1180 and similar) */
@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar-top {
        padding-top: 25px;
    }
    
    .sidebar-logo-img {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .sidebar-system-title {
        font-size: 18px;
    }
    
    .sidebar-profile {
        width: 82%;
        padding: 16px 20px;
        margin-bottom: 22px;
        border-radius: 18px;
    }
    
    .profile-info h3 {
        font-size: 17px;
    }
    
    .profile-avatar {
        width: 42px;
        height: 42px;
    }
    
    .profile-avatar img {
        width: 42%;
        height: 42%;
    }
}

/* Large tablets and small laptops (up to 1199px) */
@media (max-width: 1199px) and (min-width: 1025px) {
    .sidebar-system-title {
        font-size: 14px;
    }
    
    .sidebar-profile {
        width: 90%;
        padding: 10px 14px;
    }
    
    .profile-info h3 {
        font-size: 14px;
    }
}

/* Small tablets and large phones (up to 767px) */
@media (max-width: 767px) {
    .sidebar-top {
        padding-top: 12px;
    }
    
    .sidebar-logo-img {
        width: 26px;
        height: 26px;
        margin-bottom: 5px;
        
    }
    
    .sidebar-system-title {
        font-size: 12px;
    }
    
    .sidebar-profile {
        width: 90%;
        padding: 10px 14px;
        margin-bottom: 12px;
        border-radius: 14px;
        
    }
    
    .profile-info h3 {
        font-size: 12px;
    }
    
    .profile-avatar {
        width: 26px;
        height: 26px;
        
    }
    
    .profile-avatar img {
        width: 45%;
        height: 45%;
        
    }
}

/* Phones (up to 575px) */
@media (max-width: 575px) {
    .sidebar-top {
        padding-top: 8px;
    }
    
    .sidebar-logo-img {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
    }
    
    .sidebar-system-title {
        font-size: 11px;
    }
    
    .sidebar-profile {
        width: 92%;
        padding: 8px 12px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    
    .profile-info h3 {
        font-size: 11px;
    }
    
    .profile-avatar {
        width: 22px;
        height: 22px;
    }
    
    .profile-avatar img {
        width: 48%;
        height: 48%;
    }
}

/* Very small phones (up to 400px) */
@media (max-width: 400px) {
    .sidebar-top {
        padding-top: 6px;
    }
    
    .sidebar-logo-img {
        width: 18px;
        height: 18px;
        margin-bottom: 3px;
    }
    
    .sidebar-system-title {
        font-size: 10px;
    }
    
    .sidebar-profile {
        width: 94%;
        padding: 6px 10px;
        margin-bottom: 8px;
        border-radius: 10px;
    }
    
    .profile-info h3 {
        font-size: 10px;
    }
    
    .profile-avatar {
        width: 18px;
        height: 18px;
    }
    
    .profile-avatar img {
        width: 50%;
        height: 50%;
    }
}

/* Short screens (height up to 600px) */
@media (max-height: 600px) {
    .sidebar-top {
        padding-top: 4px;
    }
    
    .sidebar-logo-img {
        width: 20px;
        height: 20px;
        margin-bottom: 3px;
    }
    
    .sidebar-system-title {
        font-size: 10px;
    }
    
    .sidebar-profile {
        padding: 6px 10px;
        margin-bottom: 6px;
        border-radius: 10px;
    }
    
    .profile-info h3 {
        font-size: 10px;
    }
    
    .profile-avatar {
        width: 20px;
        height: 20px;
    }
}

/* Very short screens (height up to 450px) */
@media (max-height: 450px) {
    .sidebar-top {
        padding-top: 2px;
    }
    
    .sidebar-logo-img {
        width: 16px;
        height: 16px;
        margin-bottom: 2px;
    }
    
    .sidebar-system-title {
        font-size: 9px;
    }
    
    .sidebar-profile {
        padding: 4px 8px;
        margin-bottom: 4px;
        border-radius: 8px;
    }
    
    .profile-info h3 {
        font-size: 9px;
    }
    
    .profile-avatar {
        width: 16px;
        height: 16px;
    }
    
    .profile-avatar img {
        width: 55%;
        height: 55%;
    }
}