/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f5c45b;
    --primary-dark: #d4a842;
    --primary-light: #f7d88b;
    --background-dark: #0a0a0f;
    --background-card: #121218;
    --background-sidebar: #0d0d12;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a8;
    --border-color: #2a2a35;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    --transition: all 0.2s ease;
    --font-size-sm: 13px;
    --font-size-md: 14px;
    --font-size-lg: 15px;
    --font-size-xl: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: var(--font-size-md);
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background-color: var(--background-sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

 
 
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
 
 
}

.logo-img {
    width: 140px;   /* was 90px */
    height: 140px;  /* was 90px */

}

 
 

.sidebar nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 1px 12px;
    border-radius: 5px;
    overflow: hidden;
}

.sidebar li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    border-left: 2px solid transparent;
}

.sidebar li a:hover {
    background-color: rgba(245, 196, 91, 0.05);
    color: var(--primary-light);
}

.sidebar li.active a {
    background-color: rgba(245, 196, 91, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar li i {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.produced-by {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}
/* Main Wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 200px;
    min-height: 100vh;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: var(--background-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 5;
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 70px;
}

.header-left h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.date-display {
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.date-display i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 14px;
}

/* User Profile in Header */
.user-profile-header {
    position: relative;
}

.user-info-header {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.user-info-header:hover {
    border-color: rgba(245, 196, 91, 0.2);
}

.avatar-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(245, 196, 91, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border: 1px solid rgba(245, 196, 91, 0.2);
}

.avatar-header i {
    font-size: 20px;
    color: var(--primary-color);
}

.user-details-header h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.user-details-header p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Main Content Area */
.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    height: calc(100vh - 70px);
    background-color: var(--background-dark);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Styles */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background-color: var(--background-card);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(245, 196, 91, 0.3);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 22px;
    background-color: rgba(245, 196, 91, 0.1);
    color: var(--primary-color);
}

.summary-content h3 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--primary-color);
}

.summary-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Dashboard Table */
.dashboard-table-container {
    background-color: var(--background-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.table-header h3 i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.btn-refresh {
    background-color: rgba(245, 196, 91, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(245, 196, 91, 0.3);
    border-radius: 5px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-refresh:hover {
    background-color: rgba(245, 196, 91, 0.2);
}

.btn-refresh i {
    margin-right: 6px;
    font-size: 13px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead {
    background-color: rgba(245, 196, 91, 0.05);
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

tbody tr:hover {
    background-color: rgba(245, 196, 91, 0.03);
}

.service-badge {
    background-color: rgba(245, 196, 91, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(245, 196, 91, 0.2);
}

.empty-table {
    text-align: center;
    padding: 40px 15px;
    color: var(--text-secondary);
}

.empty-table i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--border-color);
    opacity: 0.5;
}

.empty-table p {
    font-size: 14px;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Registration Form Styles */
.form-container {
    background-color: var(--background-card);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.form-header {
    margin-bottom: 25px;
    text-align: center;
}

.form-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.form-header h2 i {
    margin-right: 12px;
    font-size: 18px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* 3-Column Form Layout */
.form-row {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 14px;
}

input,
select,
textarea {
    padding: 12px;
    background-color: #00000081; /* Black background */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff; /* White text */
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #00000081; /* Keep black on focus */
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Softer white for placeholder */
}
textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.4;
}

select {
    appearance: none;
    background-color: #00000081;
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.price-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-primary i,
.btn-secondary i,
.btn-danger i {
    margin-right: 8px;
    font-size: 14px;
}

/* View Button Style */
.btn-view {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(23, 162, 184, 0.3);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-view:hover {
    background-color: rgba(23, 162, 184, 0.2);
}

.btn-view i {
    margin-right: 5px;
    font-size: 11px;
}

/* Update action buttons container for proper spacing */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Field display style for view mode */
.view-field {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.view-field:last-child {
    border-bottom: none;
}

.view-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.view-label i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 13px;
}

.view-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 6px 0;
}

.view-service-badge {
    background-color: rgba(245, 196, 91, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(245, 196, 91, 0.2);
}

.view-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* Management Page Styles */
.management-container {
    background-color: var(--background-card);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.management-header h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.management-header h2 i {
    margin-right: 12px;
    font-size: 18px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
}

.search-box input {
    padding-left: 38px;
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-edit {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
    border: 1px solid rgba(32, 201, 151, 0.3);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-edit:hover {
    background-color: rgba(32, 201, 151, 0.2);
}

.btn-delete {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-delete:hover {
    background-color: rgba(220, 53, 69, 0.2);
}

.btn-edit i,
.btn-delete i {
    margin-right: 5px;
    font-size: 11px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-card);
    border-radius: 10px;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--background-card);
    z-index: 1;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.modal-header h3 i {
    margin-right: 8px;
    font-size: 16px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    padding: 18px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background-color: var(--background-card);
}

.warning-text {
    color: var(--warning-color);
    font-size: 13px;
    margin-top: 8px;
}

/* Expense specific styles */
.type-badge {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.amount-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Expense View Modal Styles */
.record-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.record-header-info h3 {
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.record-meta-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    align-items: center;
    flex-wrap: wrap;
}

.record-meta-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-meta-info i {
    color: var(--primary-color);
    font-size: 11px;
}

.view-field {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.view-field:last-child {
    border-bottom: none;
}

.view-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.view-label i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 13px;
    width: 14px;
    text-align: center;
}

.view-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 6px 0;
    word-break: break-word;
}

/* Expense specific view styles */
.type-badge {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Amount display in view modal */
.view-amount {
    color: var(--danger-color);
    font-weight: 600;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

/* Notes display with better formatting */
.view-notes-container {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 12px;
    margin-top: 4px;
    border-left: 2px solid var(--primary-color);
}

.view-notes {
    white-space: pre-wrap;
    line-height: 1.5;
    color: var(--text-primary);
    font-size: 13px;
}

/* Empty notes state */
.view-notes.empty {
    color: var(--text-secondary);
    font-style: italic;
}

/* Patient View Styles */
.patient-view-container {
    padding: 8px;
}

.patient-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.patient-photo-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.patient-photo-placeholder-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(245, 196, 91, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.patient-photo-placeholder-large i {
    font-size: 32px;
    color: var(--primary-color);
}

.patient-info-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.patient-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 13px;
    flex-wrap: wrap;
}

.patient-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.patient-meta i {
    color: var(--primary-color);
    font-size: 13px;
}

.view-section {
    margin-bottom: 20px;
}

.view-section h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.view-field {
    margin-bottom: 12px;
}

.view-field label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-field .view-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 6px 0;
}

.sessions-table-view {
    overflow-x: auto;
    margin-top: 12px;
}

.sessions-table-view table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-card);
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}

.sessions-table-view th {
    background-color: rgba(245, 196, 91, 0.1);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.sessions-table-view td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.sessions-table-view tr:last-child td {
    border-bottom: none;
}

/* Edit Modal Styles */
#editPatientModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.current-photo {
    text-align: center;
    margin-bottom: 12px;
}

.current-photo img {
    max-width: 100px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* CPR Specific Styles */
.cpr-form-section {
    margin-bottom: 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cpr-form-section:last-child {
    border-bottom: none;
}

.cpr-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: 16px;
}

.cpr-section-header i {
    font-size: 16px;
}

/* Seasons Grid */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.season-card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.season-header {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.season-cells {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.season-cell {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.season-cell:hover {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

.season-cell.active {
    border-color: var(--primary-color);
    background-color: rgba(245, 196, 91, 0.1);
}

.season-cell.active i {
    color: var(--primary-color) !important;
}

/* Photo Upload Styles */
.photo-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(245, 196, 91, 0.05);
}

.photo-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.photo-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.photo-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.remove-photo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Medical Badges */
.medical-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
}

.medical-badge.danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.medical-badge.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.medical-badge.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Blood Group Badge */
.blood-group-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-radius: 16px;
    font-weight: 600;
    border: 1px solid rgba(108, 117, 125, 0.3);
    font-size: 12px;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Thumbnail Styles */
.thumbnail-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* View Modal Styles */
.view-field-group {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.view-field-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-field-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* User Management Styles */
.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.staff {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.role-badge.admin {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.role-badge.manager {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.role-badge.super-admin {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.permission-item {
    display: flex;
    align-items: center;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.2s ease;
    width: 100%;
}

.permission-checkbox:hover {
    background-color: rgba(245, 196, 91, 0.05);
}

.permission-checkbox input[type="checkbox"] {
    display: none;
}

.permission-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.permission-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.permission-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 11px;
}

.permission-checkbox i {
    margin-right: 8px;
    color: var(--text-secondary);
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.permission-checkbox span {
    font-size: 13px;
    color: var(--text-primary);
}

/* User View Styles */
.user-view-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(245, 196, 91, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.user-avatar-large i {
    font-size: 40px;
    color: var(--primary-color);
}

.user-info-large h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.user-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.user-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 13px;
}

.user-meta i {
    color: var(--primary-color);
    font-size: 13px;
}

.view-section {
    margin-bottom: 20px;
}

.view-section h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

/* Form Section Header */
.form-section-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.form-section-header h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Access Denied Message */
.access-denied {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    margin: 16px 0;
    color: var(--danger-color);
    font-size: 14px;
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* User Management Search Box Fix */
.management-container .search-box {
    margin-bottom: 20px;
    margin-top: 16px;
    position: relative;
    width: 100%;
    max-width: 350px;
}

.management-container .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
    z-index: 2;
}

.management-container .search-box input {
    padding: 12px 16px 12px 38px;
    width: 100%;
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.management-container .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(245, 196, 91, 0.02);
    box-shadow: 0 0 0 2px rgba(245, 196, 91, 0.1);
}

.management-container .search-box input::placeholder {
    color: var(--text-secondary);
}

/* Table Wrapper Fix */
.management-container .table-wrapper {
    margin-top: 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Table specific fixes for User Management */
.management-container table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.management-container thead {
    background-color: rgba(245, 196, 91, 0.05);
}

.management-container th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.management-container td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
}

.management-container tbody tr:last-child td {
    border-bottom: none;
}

.management-container tbody tr:hover {
    background-color: rgba(245, 196, 91, 0.03);
}

/* Empty Table State */
.management-container .empty-table {
    text-align: center;
    padding: 50px 16px;
    color: var(--text-secondary);
}

.management-container .empty-table i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-color);
    opacity: 0.5;
}

.management-container .empty-table p {
    font-size: 14px;
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Action Buttons Container */
.management-container .action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Last Login and Created Date styling */
.management-container td:nth-child(5),
.management-container td:nth-child(6) {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Add to your existing CSS */
 

 

 /* View Button Style */
.btn-print {
    background-color: rgba(214, 148, 26, 0.1);
       color: #cf9528 ;
    border: 1px solid rgba(221, 168, 22, 0.3);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.btn-print:hover {
    background-color: rgba(184, 114, 23, 0.2);
}

.btn-print i {
    margin-right: 5px;
    font-size: 11px;
}