/* === Portal del Empleado 360 - CSS === */
/* Colors matching the React Native app exactly */
:root {
    --text: #1F2937;
    --secondary-text: #6B7280;
    --background: #F9FAFB;
    --card-background: #FFFFFF;
    --tint: #1D4ED8;
    --tab-icon-default: #9CA3AF;
    --border: #E5E7EB;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --accent: #F97316;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
}

/* === Auth Layout === */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
}

.login-container {
    background: var(--card-background);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

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

.login-logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--tint);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--secondary-text);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

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

.form-input {
    width: 100%;
    background: var(--card-background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--tint);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-input::placeholder {
    color: var(--secondary-text);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-textarea-large {
    min-height: 160px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background: var(--tint);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn-error {
    background: var(--error);
    color: #fff;
}

.btn-error:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
}

/* === App Layout === */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-background);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tint);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.sidebar-close {
    display: none;
    background: var(--background);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    object-fit: cover;
    background: var(--border);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.sidebar-user-role {
    font-size: 12px;
    color: var(--secondary-text);
}

.sidebar-menu {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.sidebar-menu li a:hover {
    background: var(--background);
    color: var(--text);
}

.sidebar-menu li a.active {
    background: rgba(29, 78, 216, 0.1);
    color: var(--tint);
}

.sidebar-menu li a svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--error);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* === Main Content === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--card-background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--error);
    color: #fff;
    border-radius: 10px;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-area {
    padding: 24px;
    max-width: 1200px;
}

/* === Alerts === */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 16px 24px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === Cards === */
.card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-text {
    flex: 1;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.card-meta {
    font-size: 13px;
    color: var(--secondary-text);
}

.card-content {
    font-size: 15px;
    line-height: 22px;
    color: var(--text);
}

/* === Grid === */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* === Quick Actions (Home) === */
.quick-action {
    padding: 18px 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.quick-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.quick-action-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 17px;
}

/* === Stats Cards === */
.stat-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--secondary-text);
    font-weight: 500;
}

/* === Manager Alert === */
.manager-alert {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.manager-alert:hover {
    background: rgba(245, 158, 11, 0.1);
}

.manager-alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.manager-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.manager-alert-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.manager-alert-subtitle {
    font-size: 13px;
    color: var(--secondary-text);
}

/* === Activity Cards === */
.activity-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.activity-subtitle {
    font-size: 13px;
    color: var(--secondary-text);
}

.activity-time {
    font-size: 12px;
    color: var(--secondary-text);
    font-weight: 500;
}

/* === Section Headers === */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.see-all-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--tint);
    text-decoration: none;
}

/* === Payslip Cards === */
.payslip-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.payslip-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payslip-content {
    flex: 1;
}

.payslip-month {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.payslip-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.payslip-details {
    font-size: 12px;
    color: var(--secondary-text);
}

.download-btn {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--tint);
}

/* === TimeClock === */
.timeclock-today {
    background: var(--card-background);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.timeclock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.timeclock-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.time-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.time-block {
    flex: 1;
    text-align: center;
}

.time-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.time-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.time-divider {
    width: 1px;
    background: var(--border);
    margin: 0 20px;
}

.total-hours-card {
    background: rgba(29, 78, 216, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.total-hours-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tint);
    margin-bottom: 4px;
}

.total-hours-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--tint);
}

.scan-button {
    background: var(--tint);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    border: none;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.25);
    transition: all 0.2s;
    color: #fff;
    text-decoration: none;
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.3);
}

.scan-button.disabled {
    background: var(--secondary-text);
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.scan-button-title {
    font-size: 20px;
    font-weight: 700;
}

.scan-button-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.completed-card {
    background: rgba(16, 185, 129, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.completed-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--success);
}

.stats-buttons {
    display: flex;
    gap: 12px;
}

.stats-btn {
    flex: 1;
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.stats-btn:hover {
    transform: translateY(-2px);
}

/* === Profile === */
.profile-header {
    text-align: center;
    padding: 32px 20px;
    background: var(--card-background);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    margin-bottom: 16px;
    object-fit: cover;
    background: var(--border);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.profile-position {
    font-size: 16px;
    font-weight: 600;
    color: var(--tint);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 14px;
    color: var(--secondary-text);
    margin-bottom: 16px;
}

.edit-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(29, 78, 216, 0.1);
    border-radius: 20px;
    border: none;
    color: var(--tint);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.balance-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.balance-card {
    flex: 1;
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.balance-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--tint);
    margin-bottom: 4px;
}

.balance-label {
    font-size: 12px;
    color: var(--secondary-text);
}

.info-card {
    background: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tint);
}

.info-label {
    font-size: 12px;
    color: var(--secondary-text);
    font-weight: 500;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* === Directory === */
.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--background);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
    margin-bottom: 16px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    outline: none;
}

.search-input::placeholder {
    color: var(--secondary-text);
}

.employee-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.employee-avatar {
    width: 64px;
    height: 64px;
    border-radius: 32px;
    object-fit: cover;
    background: var(--border);
    flex-shrink: 0;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.employee-position-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--tint);
    margin-bottom: 4px;
}

.employee-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--secondary-text);
    margin-bottom: 2px;
}

.employee-number-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-text);
}

.contact-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(29, 78, 216, 0.1);
    border-radius: 8px;
    border: none;
    color: var(--tint);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--background);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary-text);
}

.employee-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn-edit {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(29, 78, 216, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--tint);
}

.action-btn-delete {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: var(--error);
}

/* === Request Cards (Approvals) === */
.request-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.request-info {
    flex: 1;
}

.request-employee-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.type-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.days-container {
    text-align: center;
    background: rgba(29, 78, 216, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
}

.days-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--tint);
}

.days-label {
    font-size: 12px;
    color: var(--secondary-text);
}

.date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 500;
}

.notes-container {
    background: var(--background);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.notes-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 4px;
}

.notes-text {
    font-size: 14px;
    color: var(--text);
    line-height: 20px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-buttons .btn {
    flex: 1;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state svg {
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state-subtitle {
    font-size: 15px;
    color: var(--secondary-text);
}

/* === Privacy Banner === */
.privacy-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 24px;
    font-size: 13px;
    color: var(--info);
    font-weight: 600;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

/* === Status Badge === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

.status-text {
    font-size: 12px;
    font-weight: 700;
}

/* === Report/Suggestion Cards === */
.report-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--error);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.suggestion-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* === Floating Button === */
.floating-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
}

.floating-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tint);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.2s;
    text-decoration: none;
}

.floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* === Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: flex-end;
    align-items: stretch;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--background);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--card-background);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

.modal-content {
    padding: 20px;
}

/* === Info Box === */
.info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.06);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--info);
    font-weight: 600;
}

/* === Category Selector === */
.category-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.category-option {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: var(--card-background);
    border: 2px solid var(--border);
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
    transition: all 0.2s;
}

.category-option.active {
    border-color: var(--tint);
    background: rgba(29, 78, 216, 0.06);
    color: var(--tint);
}

/* === Period Selector === */
.period-selector {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 16px;
}

.period-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--background);
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.period-btn.active {
    background: var(--tint);
    color: #fff;
}

/* === Time Clock History === */
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 16px;
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--background);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
}

.nav-button.disabled {
    opacity: 0.3;
    cursor: default;
}

.month-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-transform: capitalize;
}

.summary-card {
    background: var(--tint);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
    color: #fff;
}

.summary-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-subtext {
    font-size: 14px;
    opacity: 0.8;
}

.day-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--card-background);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.date-box {
    width: 56px;
    height: 56px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.date-weekday {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
}

.day-info {
    flex: 1;
}

.day-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
}

.today-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--tint);
}

.day-time-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-text);
}

.incomplete-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--warning);
}

.no-data-text {
    font-size: 13px;
    color: var(--secondary-text);
    font-style: italic;
}

.hours-box {
    padding: 8px 12px;
    background: rgba(29, 78, 216, 0.1);
    border-radius: 8px;
}

.hours-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--tint);
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stats-grid .stat-card {
    text-align: center;
}

.stats-grid .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: var(--background);
    margin: 0 auto 8px;
}

/* === Download Button === */
.download-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(29, 78, 216, 0.1);
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--tint);
    font-size: 14px;
    font-weight: 600;
}

/* === Category Badge === */
.category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--info);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* === Attachment Button === */
.attachment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(29, 78, 216, 0.1);
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    text-decoration: none;
    color: var(--tint);
    font-size: 14px;
    font-weight: 600;
}

/* === Results Count === */
.results-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 16px;
}

/* === Heading with actions === */
.header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* === QR Display === */
.qr-display {
    background: var(--card-background);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.qr-code-text {
    font-family: monospace;
    font-size: 14px;
    color: var(--secondary-text);
    background: var(--background);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

/* === Time Off Form Types === */
.type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--card-background);
    border-radius: 12px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.type-option.selected {
    border-color: var(--tint);
    background: rgba(29, 78, 216, 0.04);
}

.type-option input[type="radio"] {
    display: none;
}

.type-label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-text);
}

.type-option.selected .type-label-text {
    color: var(--tint);
}

.days-info {
    background: rgba(29, 78, 216, 0.06);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.days-info-text {
    font-size: 15px;
    color: var(--secondary-text);
}

.days-info-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--tint);
}

/* === Header subtitle === */
.header-subtitle {
    font-size: 15px;
    color: var(--secondary-text);
    margin-bottom: 24px;
}

/* === Info notice === */
.info-notice {
    background: rgba(29, 78, 216, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--tint);
}

/* === TimeClock Day Times === */
.day-times-row {
    display: flex;
    align-items: center;
}

.day-time-block {
    flex: 1;
    text-align: center;
}

.day-time-block-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-text);
    margin-bottom: 4px;
}

.day-time-block-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.day-time-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    margin: 0 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .content-area {
        padding: 16px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .balance-grid {
        flex-direction: column;
    }

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

    .floating-button-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .floating-button {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Logout button in profile === */
.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: var(--error);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* === Checkbox/check icon for time entries === */
.check-icon {
    color: var(--success);
}

/* === Header page actions row === */
.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header-actions h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
