/* --- USER WELCOME BANNER (Top Right Card) --- */
.header-right {
    display: flex;
    justify-content: flex-end;
}

.welcome-banner {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 320px; /* Default width */
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    cursor: default;
}

/* Hover Expansion Logic */
.banner-actions-hover {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    overflow: hidden;
    justify-content: center;
}

.welcome-banner:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.welcome-banner:hover .banner-actions-hover {
    max-height: 80px;
    opacity: 1;
    margin-top: 12px;
    pointer-events: auto;
}

/* Dynamic Status Colors */
.welcome-banner.status-in-office { border-left: 5px solid var(--status-in); background: var(--status-in-bg); }
.welcome-banner.status-out, .welcome-banner.status-off, .welcome-banner.status-zzzz, .welcome-banner.status-rdo { border-left: 5px solid var(--status-out); background: var(--status-out-bg); }
.welcome-banner.status-telework { border-left: 5px solid var(--status-telework); background: var(--status-telework-bg); }
.welcome-banner.status-on-leave { border-left: 5px solid var(--status-leave); background: var(--status-leave-bg); }

/* Banner Internal Rows */
.banner-row { display: flex; width: 100%; }
.greeting-row { 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 5px; }

#bannerUserName { font-size: 0.95rem; color: #555; font-weight: 700; }
#bannerText { font-size: 0.95rem; color: #555; text-align: right; }

/* Mini Buttons inside the card */
.banner-actions { display: flex; gap: 5px; margin-top: 5px; }
.mini-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    color: white;
    transition: transform 0.1s, opacity 0.2s;
}
.mini-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-in { background: var(--btn-status-in-bg); }
.btn-out { background: var(--btn-status-out-bg); }
.btn-note { background: var(--btn-note-bg); }
.btn-status { background: var(--btn-status-bg); }





/* --- SHARED MODAL STYLES (Sign In/Out Pop-up) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it stays on top */
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Internal Form Layouts */
.mode-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.mode-btn {
    flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 6px;
    background: #f8f9fa; cursor: pointer; font-weight: bold;
}
#btnModeIn.active { background: var(--btn-status-in-bg); color: white; }
#btnModeOut.active { background: var(--btn-status-out-bg); color: white; }
/*.mode-btn.active { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }*/

.form-row, .hours-grid-2col { display: grid; gap: 15px; margin-bottom: 15px; }
.hours-grid-2col { grid-template-columns: 1fr 1fr; }

.hours-grid-3col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 10px; /* Space between the columns */
    background: #f9f9f9;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 5px 0;
    box-sizing: border-box; /* Includes padding in total width calculation */
}
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers label and input horizontally */
    gap: 8px;
    width: 100%; /* Relative to the 1/3 grid column, not the whole modal */
}


.grid-item label {
    font-size: 0.9rem !important;
    font-weight: bold;
    color: #444;
    white-space: nowrap; /* Prevents text from wrapping and breaking height */
}

.grid-item input {
    width: 100% !important;
    text-align: center;
    padding: 8px 4px !important;
    box-sizing: border-box; /* Critical: keeps padding inside the width */
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}

.input-group { display: flex; flex-direction: column; gap: 5px; }
.input-group label { font-size: 0.95rem; font-weight: 700; color: #5a5959; text-transform: uppercase; }
.input-group input, .input-group select { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.input-group #punchNote { padding: 8px; border: 1px solid #ccc; border-radius: 4px; resize: none; font-size: 0.9rem; margin-left: 10px; margin-right:10px; margin-bottom: 10px; }

#punchDate, #punchTime {
    font-family: inherit;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px;
    background-color: #fff;
    color: #495057;
    width: 90%; /* Ensures they fill the container */
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* Group labels and inputs for tighter spacing */
#punchForm .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 3px;
}


/* Status Options (Radio Pill buttons) */
.radio-status-group { display: flex; flex-direction: row ;gap: 10px; flex-wrap: wrap; margin-top: 1px;}
.status-radio-option {
    border: 1px solid #ccc;
    border-radius: 8px;
    flex: 1;
    justify-content: center;
    margin-left: 10px;
    margin-bottom: 10px;
    display: flex; 
    align-items: center; 
    gap: 5px; 
    background: #f1f3f5; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    cursor: pointer;
}
/* Hover effect */
.status-radio-option:hover {
    border-color: #3a77b4;
    border:rgb(173, 185, 236) 0.5px solid;
    background-color: #f8f9fa;
}

.status-radio-option input { margin: 0; }

/* The "Active/Checked" State */
/* This uses :has to style the label based on the radio inside it */
.status-radio-option:has(input:checked) {
    border-color: #007bff; /* Blue border */
    background-color: #e7f1ff; /* Light blue background */
    font-weight: bold;
}

/* Ensure labels inside are styled consistently */
.status-radio-option span {
    font-size: 0.75rem;
    color: #444;
}

/* Hide the 'Out' option specifically */
#statusOut {
    display: none !important;
}

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-submit { background: var(--primary-blue); color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-cancel { background: #6c757d; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; }

/* #region Toast Notification */
/* Toast Container */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Start off-screen */
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-family: sans-serif;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Success vs Error Colors */
.toast-green { background-color: #2e7d32; } /* Forest Green */
.toast-red { background-color: #d32f2f; }   /* Error Red */

/* Show state */
.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
/* #endregion */