* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f1419;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 200px;
    background-color: #1a1f2e;
    padding: 20px 15px;
    border-right: 1px solid #2a3142;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-weight: bold;
}

.logo-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.logo-text {
    font-size: 13px;
}

.nav-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.nav-item:hover {
    background-color: #2a3142;
}

.nav-item.active {
    background-color: #2a3142;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
}

.user-info {
    color: #8b92a0;
    font-size: 12px;
    padding: 8px 10px;
    margin-bottom: 8px;
    text-align: center;
    border-top: 1px solid #2a3142;
    padding-top: 12px;
}

.btn-logout {
    width: 100%;
    background-color: transparent;
    border: 1px solid #2a3142;
    color: #e6e9ef;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background-color: #2a3142;
    border-color: #ffb800;
    color: #ffb800;
}

.permission-denied {
    background-color: #3a1014;
    border: 1px solid #f04a4a;
    color: #f7c7c7;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    display: none;
}

.permission-denied.show {
    display: block;
}

.modal-message {
    display: none;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.modal-message.show {
    display: block;
}

.modal-message.success {
    background-color: #102f1d;
    border: 1px solid #3ccf8e;
    color: #b7f5d5;
}

.modal-message.error {
    background-color: #3a1014;
    border: 1px solid #f04a4a;
    color: #f7c7c7;
}

.muted {
    color: #8b92a0;
    font-size: 12px;
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.request-card {
    background-color: #121826;
    border: 1px solid #1f2738;
    border-radius: 12px;
    padding: 20px;
}

.request-card h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.request-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-item {
    background-color: #151c2a;
    border: 1px solid #222b3d;
    border-radius: 10px;
    padding: 12px;
}

.request-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.request-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.request-meta {
    font-size: 12px;
    color: #8b92a0;
}

.request-notes {
    font-size: 12px;
    color: #d4d7de;
    margin-top: 6px;
    white-space: pre-wrap;
}

.request-proposed-date {
    font-size: 12px;
    color: #7ce2f2;
    margin-top: 6px;
}

.request-schedule-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.request-schedule-actions input[type="datetime-local"] {
    flex: 1;
    min-width: 180px;
    padding: 7px 8px;
    font-size: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-submitted {
    background-color: #352911;
    color: #f4d68b;
    border: 1px solid #5a4318;
}

.status-approved {
    background-color: #0f2b1f;
    color: #7ce2b5;
    border: 1px solid #1f5c42;
}

.status-rejected {
    background-color: #3a1014;
    color: #f7c7c7;
    border: 1px solid #f04a4a;
}

.request-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.request-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.6fr 0.9fr;
    gap: 12px;
    align-items: center;
    background-color: #151c2a;
    border: 1px solid #222b3d;
    border-radius: 10px;
    padding: 12px;
}

.request-cell {
    font-size: 13px;
}

.request-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .request-row {
        grid-template-columns: 1fr;
    }

    .request-actions {
        justify-content: flex-start;
    }
}

.nav-item.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.is-disabled,
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.header p {
    color: #8b92a0;
    font-size: 14px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.notification-root {
    position: relative;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #2a3142;
    background-color: #121826;
    color: #e6e9ef;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.notification-bell:hover {
    border-color: #ffb800;
    color: #ffb800;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: #f04a4a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f1419;
}

.notification-badge.is-hidden {
    display: none;
}

.notification-panel {
    position: absolute;
    right: 0;
    top: 46px;
    width: 320px;
    background-color: #121826;
    border: 1px solid #2a3142;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: 12px;
    display: none;
    z-index: 50;
}

.notification-panel.open {
    display: block;
}

.notification-header {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e6e9ef;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    background-color: #151c2a;
    border: 1px solid #222b3d;
    border-radius: 10px;
    padding: 10px;
}

.notification-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 12px;
    color: #c7ccd6;
    margin-bottom: 6px;
}

.notification-meta {
    font-size: 11px;
    color: #8b92a0;
    margin-bottom: 8px;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-link {
    font-size: 12px;
    color: #ffb800;
    text-decoration: none;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-dismiss {
    background: none;
    border: none;
    color: #8b92a0;
    font-size: 12px;
    cursor: pointer;
}

.notification-dismiss:hover {
    color: #e6e9ef;
}

.notification-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.notification-empty {
    font-size: 12px;
    color: #8b92a0;
    padding: 12px;
    text-align: center;
}

@media (max-width: 700px) {
    .notification-panel {
        width: 90vw;
        right: 0;
    }
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.settings-card {
    background-color: #121826;
    border: 1px solid #1f2738;
    border-radius: 12px;
    padding: 20px;
}

.settings-card-header {
    margin-bottom: 16px;
}

.settings-card-header h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.settings-card-header p {
    color: #8b92a0;
    font-size: 12px;
}

.settings-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.subdivision-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background-color: #151c2a;
    border: 1px solid #222b3d;
}

.subdivision-name {
    font-size: 14px;
    font-weight: 600;
}

.subdivision-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.subdivision-field {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b92a0;
    font-size: 12px;
}

.settings-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #1a2234;
    border: 1px solid #2a3142;
    font-size: 12px;
    cursor: grab;
}

.settings-chip.dragging,
.module-item.dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.chip-remove {
    background: none;
    border: none;
    color: #8b92a0;
    cursor: pointer;
    font-size: 12px;
}

.settings-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-square {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.module-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0f141f;
    border: 1px solid #1f2738;
    border-radius: 10px;
    padding: 12px;
    cursor: grab;
}

.rank-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #0f141f;
    border: 1px solid #1f2738;
    border-radius: 10px;
    padding: 12px;
    cursor: grab;
    margin-bottom: 10px;
}

.rank-info {
    min-width: 160px;
}

.rank-name {
    font-size: 14px;
    font-weight: 600;
}

.rank-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rank-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #8b92a0;
}

.module-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.module-meta {
    color: #8b92a0;
    font-size: 11px;
}

.btn-small {
    padding: 6px 10px;
    font-size: 11px;
}

.btn-add {
    background-color: #ffb800;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.user-permissions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background-color: #0f141f;
    border: 1px solid #1f2738;
}

.user-permission-name {
    font-size: 14px;
    font-weight: 600;
}

.user-permission-meta {
    color: #8b92a0;
    font-size: 12px;
}

.user-permission-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #1a1f2e;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a3142;
}

.stat-label {
    color: #8b92a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon.blue {
    background-color: #1e3a5f;
    color: #4a9eff;
}

.stat-icon.green {
    background-color: #1f3a2a;
    color: #4ade80;
}

.stat-icon.orange {
    background-color: #3a2a1f;
    color: #fb923c;
}

.stat-icon.red {
    background-color: #3a1f1f;
    color: #ef4444;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background-color: #1a1f2e;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2a3142;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.donut-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.donut-chart svg {
    flex-shrink: 0;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 300px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.chart-legend-label {
    flex: 1;
    color: #fff;
}

.chart-legend-value {
    color: #8b92a0;
    font-size: 11px;
}

.chart-label {
    color: #8b92a0;
    font-size: 12px;
    text-align: center;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #2a3142;
    display: flex;
    align-items: center;
    gap: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #2a3142;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #2a3142;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.activity-hours {
    color: #8b92a0;
    font-size: 12px;
    font-weight: normal;
    margin-left: 6px;
}

.activity-date {
    font-size: 12px;
    color: #8b92a0;
}

.activity-name {
    font-size: 14px;
    margin-bottom: 3px;
}

.activity-time {
    font-size: 12px;
    color: #8b92a0;
}

.activity-action {
    color: #8b92a0;
    font-size: 12px;
}

.nav-item {
    color: inherit;
    text-decoration: none;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input,
.select-input {
    background-color: #111826;
    border: 1px solid #2a3142;
    color: #e6e9ef;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    min-width: 180px;
}

.search-input::placeholder {
    color: #6e7686;
}

.select-input {
    min-width: 160px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #2a3142;
}

.data-table th {
    color: #8b92a0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.data-table tr:hover {
    background-color: #161c2b;
}

.data-table tr {
    cursor: pointer;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-pill.active {
    background-color: #1f3a2a;
    color: #4ade80;
}

.status-pill.inactive {
    background-color: #1e3a5f;
    color: #4a9eff;
}

.status-pill.suspended {
    background-color: #3a1f1f;
    color: #ef4444;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-secondary {
    background-color: transparent;
    color: #ffb800;
    border: 1px solid #3a3f4f;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #2a3142;
    border-color: #ffb800;
}

.btn-primary {
    background-color: #ffb800;
    color: #0f1419;
    border: 1px solid #ffb800;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #ffc933;
    border-color: #ffc933;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.table-note {
    color: #8b92a0;
    font-size: 12px;
    margin-top: 12px;
    display: none;
}

.roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.roster-header h3 {
    font-size: 18px;
    margin: 0;
}

.roster-count {
    color: #8b92a0;
    font-size: 13px;
}

.roster-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.roster-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roster-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.roster-section-header h4 {
    font-size: 16px;
    margin: 0;
}

.roster-section-count {
    color: #8b92a0;
    font-size: 12px;
}

.roster-section-empty {
    color: #8b92a0;
    font-size: 12px;
    padding: 6px 0;
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.employee-card {
    background-color: #1a1f2e;
    border: 1px solid #2a3142;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.employee-card:hover {
    border-color: #ffb800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.employee-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a3142 0%, #1a1f2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #ffb800;
    flex-shrink: 0;
}

.employee-info {
    flex: 1;
    min-width: 0;
}

.employee-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b92a0;
    font-size: 12px;
    margin-bottom: 2px;
}

.employee-callsign {
    color: #8b92a0;
    font-size: 12px;
}

.employee-status-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4ade80;
}

.employee-status-dot.inactive {
    background-color: #6e7686;
}

.employee-status-dot.suspended {
    background-color: #ef4444;
}

.employee-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-role {
    color: #e6e9ef;
    font-size: 13px;
    font-weight: 500;
}

.employee-subdivisions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subdivision-badge {
    background-color: #0f141f;
    border: 1px solid #2a3142;
    color: #8b92a0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
}

.employee-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #2a3142;
}

.employee-hours {
    color: #8b92a0;
    font-size: 12px;
}

.employee-actions {
    display: flex;
    gap: 6px;
}

.btn-icon-small {
    background-color: transparent;
    border: 1px solid #2a3142;
    color: #e6e9ef;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-icon-small:hover {
    border-color: #ffb800;
    color: #ffb800;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8b92a0;
}

.empty-state p {
    font-size: 14px;
}

.empty-state p {
    font-size: 14px;
}

/* Employee Detail View */
#employee-detail-view {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-header {
    margin-bottom: 20px;
}

.btn-back {
    background-color: transparent;
    border: 1px solid #2a3142;
    color: #e6e9ef;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-back:hover {
    background-color: #1a1f2e;
    border-color: #ffb800;
}

.detail-profile-card {
    background-color: #1a1f2e;
    border: 1px solid #2a3142;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.detail-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.detail-profile-left {
    display: flex;
    gap: 16px;
}

.detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a3142 0%, #1a1f2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #ffb800;
    flex-shrink: 0;
}

.detail-profile-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b92a0;
    font-size: 14px;
    margin-bottom: 8px;
}

.detail-rank {
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-badge-item {
    background-color: #0f141f;
    border: 1px solid #2a3142;
    color: #e6e9ef;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.detail-badge-item.status-active {
    background-color: #1f3a2a;
    color: #4ade80;
    border-color: #2d5a3f;
}

.detail-profile-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    color: #ef4444 !important;
    border-color: #3a1f1f !important;
}

.btn-danger:hover {
    background-color: #3a1f1f !important;
    border-color: #ef4444 !important;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.detail-stat {
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 16px;
    position: relative;
}

.detail-stat-label {
    color: #8b92a0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.detail-stat-value {
    font-size: 20px;
    font-weight: 600;
}

.detail-stat-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
}

.detail-additional-info {
    background-color: #1a1f2e;
    border: 1px solid #2a3142;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-additional-info h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 8px;
}

.info-icon {
    font-size: 20px;
}

.info-label {
    color: #8b92a0;
    font-size: 12px;
    margin-bottom: 4px;
}

.info-value {
    color: #e6e9ef;
    font-size: 14px;
}

.detail-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a3142;
}

.detail-tab {
    background-color: transparent;
    border: none;
    color: #8b92a0;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.detail-tab:hover {
    color: #e6e9ef;
}

.detail-tab.active {
    color: #ffb800;
    border-bottom-color: #ffb800;
}

.detail-tab-content {
    background-color: #1a1f2e;
    border: 1px solid #2a3142;
    border-radius: 12px;
    padding: 20px;
}

.detail-tab-panel {
    display: none;
}

.detail-tab-panel.active {
    display: block;
}

.detail-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-panel-header h3 {
    font-size: 16px;
    margin: 0;
}

.detail-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-record-item {
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 16px;
}

.detail-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-record-type {
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.detail-record-date {
    color: #8b92a0;
    font-size: 12px;
}

.detail-record-time {
    display: inline-block;
    background-color: #1a1f2e;
    color: #ffb800;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.detail-record-description {
    color: #8b92a0;
    font-size: 13px;
    line-height: 1.5;
}

.detail-training-item {
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.detail-training-name {
    font-size: 14px;
    font-weight: 600;
}

.detail-training-desc {
    color: #8b92a0;
    font-size: 12px;
    margin-top: 4px;
}

.detail-training-status {
    background-color: #1f3a2a;
    color: #4ade80;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.detail-training-status.failed {
    background-color: #3a1f1f;
    color: #ef4444;
}

.training-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.training-status-badge.status-passed {
    background-color: #1f3a2a;
    color: #4ade80;
}

.training-status-badge.status-failed {
    background-color: #3a1f1f;
    color: #ef4444;
}

.training-status-badge.status-pending {
    background-color: #3a2f1f;
    color: #fbbf24;
}

.detail-training-status.pending {
    background-color: #3a2a1f;
    color: #fb923c;
}

@media (max-width: 768px) {
    .employee-grid {
        grid-template-columns: 1fr;
    }
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 20, 0.72);
    backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    background-color: #141a28;
    border: 1px solid #2a3142;
    border-radius: 14px;
    padding: 24px;
    width: min(760px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modal-panel.form-modal {
    width: min(620px, 92vw);
}

.modal-panel.modal-panel-sm {
    width: min(460px, 92vw);
}

.modal-content {
    position: relative;
    background-color: #141a28;
    border: 1px solid #2a3142;
    border-radius: 14px;
    padding: 24px;
    width: min(620px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    z-index: 21;
}

.modal-close {
    background: transparent;
    border: none;
    color: #8b92a0;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a3142;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-subtitle {
    color: #8b92a0;
    font-size: 13px;
}

.modal-divider {
    margin: 0 8px;
}

.btn-icon {
    background-color: transparent;
    border: 1px solid #2a3142;
    color: #e6e9ef;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.message.success {
    background-color: #102f1d;
    border: 1px solid #3ccf8e;
    color: #b7f5d5;
}

.message.error {
    background-color: #3a1014;
    border: 1px solid #f04a4a;
    color: #f7c7c7;
}

.message:empty {
    display: none;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 16px;
}

.info-label {
    color: #8b92a0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
}

.modal-section h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-muted {
    color: #8b92a0;
    font-size: 13px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-summary.hidden,
.modal-edit.hidden {
    display: none;
}

.modal-edit {
    display: none;
}

.modal.editing .modal-summary {
    display: none;
}

.modal.editing .modal-edit {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-span-2 {
    grid-column: span 2;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #8b92a0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-input {
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 8px;
    color: #e6e9ef;
    padding: 10px 12px;
    font-size: 14px;
}

.form-input[type="file"] {
    padding: 8px 12px;
}

.form-input::placeholder {
    color: #6e7686;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 12px;
}

.training-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 12px;
}

.training-item {
    background-color: #151c2a;
    border: 1px solid #222938;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.training-item-available {
    opacity: 0.7;
}

.training-name {
    font-size: 14px;
    flex: 1;
}

.training-status {
    display: flex;
    gap: 8px;
    align-items: center;
}

.training-status select {
    background-color: #0f141f;
    border: 1px solid #222938;
    color: #e6e9ef;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.training-status select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-remove-training {
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #3a1f1f;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s;
}

.btn-remove-training:hover {
    background-color: #3a1f1f;
    border-color: #ef4444;
}

.activity-log-list,
.disciplinary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #0f141f;
    border: 1px solid #222938;
    border-radius: 10px;
    padding: 12px;
}

.record-item {
    background-color: #151c2a;
    border: 1px solid #222938;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.record-content {
    flex: 1;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.record-type {
    font-size: 13px;
    font-weight: 600;
    color: #e6e9ef;
    text-transform: capitalize;
}

.record-date {
    font-size: 11px;
    color: #8b92a0;
}

.record-description {
    font-size: 12px;
    color: #8b92a0;
    line-height: 1.5;
}

.record-hours {
    font-size: 11px;
    color: #ffb800;
    margin-top: 4px;
}

.record-actions {
    display: flex;
    gap: 4px;
}

.btn-record-edit {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #1f2937;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-record-edit:hover {
    background-color: #1f2937;
    border-color: #3b82f6;
}

.btn-record-delete {
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #3a1f1f;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-record-delete:hover {
    background-color: #3a1f1f;
    border-color: #ef4444;
}

.checkbox-card {
    background-color: #151c2a;
    border: 1px solid #222938;
    border-radius: 8px;
    padding: 8px 10px;
    gap: 10px;
}

.checkbox-card input[type="checkbox"] {
    accent-color: #ffb800;
}

.form-input:focus {
    outline: none;
    border-color: #ffb800;
    box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2);
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #0f1419;
    padding: 20px;
}

.login-card {
    background-color: #1a1f2e;
    border: 1px solid #2a3142;
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.logo-text-large {
    font-size: 24px;
    font-weight: bold;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: #8b92a0;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: #8b92a0;
    font-size: 13px;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e6e9ef;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ffb800;
}

.link-text {
    color: #ffb800;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s;
}

.link-text:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn-login {
    background-color: #ffb800;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-login:hover {
    background-color: #ffc933;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #8b92a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2a3142;
}

.login-divider span {
    padding: 0 12px;
}

.btn-guest-login {
    width: 100%;
    padding: 14px;
    background-color: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-guest-login:hover {
    background-color: #1f2937;
    border-color: #60a5fa;
    color: #60a5fa;
}

.btn-guest-login:active {
    transform: scale(0.98);
}

.guest-badge {
    background-color: #1f2937;
    color: #8b92a0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2a3142;
}

.login-footer p {
    color: #8b92a0;
    font-size: 13px;
}

.login-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.login-success {
    background-color: rgba(74, 222, 128, 0.12);
    border: 1px solid #4ade80;
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

@media (max-width: 500px) {
    .login-card {
        padding: 32px 24px;
    }
}

/* Global Footer */
.footer {
    background-color: #1a1f2e;
    border-top: 1px solid #2a3142;
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ========== Leave Calendar Styles ========== */

.leave-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.calendar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    text-align: left;
    padding-left: 15px;
}

.calendar-container {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a3142;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
}

.calendar-day {
    background-color: #0f1419;
    border: 1px solid #2a3142;
    border-radius: 8px;
    min-height: 100px;
    padding: 8px;
    position: relative;
    transition: all 0.2s;
}

.calendar-day:hover {
    border-color: #ffb800;
    cursor: pointer;
}

.calendar-day.empty {
    background-color: transparent;
    border: none;
}

.calendar-day.today {
    border: 2px solid #ffb800;
    background-color: rgba(255, 184, 0, 0.1);
}

.calendar-day.past {
    opacity: 0.5;
}

.day-number {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.leave-indicators {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

.leave-indicator {
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.leave-indicator:hover {
    height: 8px;
    opacity: 0.8;
}

.leave-indicator--labeled {
    height: auto;
    min-height: 14px;
    padding: 1px 5px;
    display: flex;
    align-items: center;
}

.leave-indicator-name {
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}

.leave-more {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin-top: 3px;
}

/* Leave List Section */
.leave-list-section {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a3142;
}

.leave-list-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.leave-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leave-item {
    background-color: #0f1419;
    border: 1px solid #2a3142;
    border-radius: 8px;
    padding: 15px;
}

.leave-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.leave-type {
    font-size: 16px;
    padding-left: 10px;
}

.leave-item-dates {
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.leave-item-reason {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.leave-item-review {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
    font-style: italic;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.status-approved {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.status-rejected {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Review Section */
.review-section {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2a3142;
}

.review-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.leave-table-container {
    overflow-x: auto;
}

.review-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #2a3142;
}

.review-detail-item:last-child {
    border-bottom: none;
}

.review-detail-item strong {
    color: #ffb800;
    margin-right: 10px;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .leave-indicator {
        height: 4px;
    }
    
    .calendar-title {
        font-size: 16px;
    }
}

/* Disabled Button State */
button:disabled,
button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid #2a3142;
        background-color: #121826;
        color: #e6e9ef;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
    }

    .sidebar-toggle:hover {
        border-color: #ffb800;
        color: #ffb800;
    }

    .container {
        flex-direction: column;
        min-height: 100vh;
        height: auto;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #2a3142;
        padding: 12px;
    }

    .logo {
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .sidebar nav {
        display: none;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .sidebar.mobile-open nav {
        display: flex;
    }

    .sidebar nav .nav-item {
        margin-bottom: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .sidebar-footer {
        display: none;
        position: static;
        margin-top: 12px;
    }

    .sidebar.mobile-open .sidebar-footer {
        display: block;
    }

    .main-content {
        padding: 20px 16px;
        overflow: visible;
    }

    .top-bar {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 20px;
    }

    .notification-panel {
        width: min(320px, calc(100vw - 32px));
    }
}

@media (max-width: 640px) {
    .sidebar-toggle {
        width: 34px;
        height: 34px;
    }

    body {
        overflow-x: hidden;
    }

    .main-content {
        padding: 16px 12px;
    }

    .header {
        margin-bottom: 20px;
    }

    .header h1 {
        font-size: 22px;
    }

    .stats-grid,
    .content-grid,
    .request-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .stat-card,
    .request-card {
        padding: 14px;
    }

    .request-row {
        gap: 8px;
        padding: 10px;
    }

    .request-actions {
        justify-content: flex-start;
    }

    .table-wrapper,
    .leave-table-container {
        margin: 0 -12px;
        padding: 0 12px;
    }

    .top-bar-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .notification-panel {
        left: 0;
        right: auto;
    }
}


@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }

    .toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-input,
    .select-input {
        min-width: 0;
        width: 100%;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(36px, 1fr));
        gap: 2px;
    }

    .calendar-day {
        min-height: 60px;
        padding: 4px;
    }

    .day-number {
        font-size: 11px;
    }

    .calendar-day-header {
        padding: 6px 2px;
        font-size: 10px;
    }

    .stat-value {
        font-size: 24px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }

    .top-bar-actions {
        flex-wrap: wrap;
    }
}

.dashboard-training-agenda {
    min-width: 0;
}

.dashboard-training-item {
    padding: 10px 0;
    border-bottom: 1px solid #222b3d;
}

.dashboard-training-item:last-child {
    border-bottom: 0;
}

.dashboard-training-date {
    color: #7ce2f2;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-training-name {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-training-meta,
.dashboard-empty-state {
    color: #8b92a0;
    font-size: 12px;
}

.dashboard-card-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #222b3d;
    text-align: center;
}