* {
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html, body {
    margin: 0;
    min-height: 100%;
    width: 100%;
}

/* Employee portal classic FlyxMarketing visual style (inspired by _example) */
body.portal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #0e1017;
    background-image: url("/static/assets/providers/null_background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 24px 16px 72px 16px;
    position: relative;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 460px;
    width: 100%;
    margin: 24px auto;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    padding: 28px;
}

.content.wide {
    max-width: 1020px;
}

.content h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #3b4252;
}

.content .subtitle {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f2f5;
}

.brand-header img {
    height: 36px;
    width: auto;
    cursor: pointer;
}

.avatar-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 16px auto;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.profile-details {
    display: flex;
    flex-direction: column;
    padding: 4px 0 8px 0;
}

.profile-details > div {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f2f5;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.profile-details > div:last-child {
    border-bottom: none;
    margin-bottom: 4px;
    padding-bottom: 4px;
}

.profile-details > div .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #9196a5;
    margin-right: 14px;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.profile-details > div strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.profile-details > div span {
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
}

.vacation-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.vacation-pill .badge-days {
    background: #16a34a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.custom_options {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.custom_options a {
    flex: 1 1 0;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.custom_options a:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #3730a3;
}

.timers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.timer-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
}

.timer-box .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    font-weight: 600;
}

.timer-box .value {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.status-banner {
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.status-off { background: #f3f4f6; color: #4b5563; }
.status-working { background: #dcfce7; color: #166534; }
.status-on_break { background: #fef3c7; color: #92400e; }
.status-on_lunch { background: #dbeafe; color: #1e40af; }

.actionsButtons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.actionsButtons .sub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-punch {
    display: block;
    width: 100%;
    border: none;
    color: #fff;
    text-align: center;
    padding: 16px 14px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn-punch:hover { opacity: 0.92; }
.btn-punch:active { transform: scale(0.99); }
.btn-punch:disabled { opacity: 0.45; cursor: not-allowed; }

.actionLogin { background: #09a509; }
.actionBreakStart { background: #09a564; }
.actionBreakEnd { background: #a87d2d; }
.actionLunchStart { background: #2563eb; }
.actionLunchEnd { background: #1d4ed8; }
.actionLogout { background: #dc2626; }

.actionsList {
    margin-top: 4px;
    margin-bottom: 20px;
}

.actionsList table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.actionsList th {
    background: #f3f4f6;
    color: #374151;
    padding: 8px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
}

.actionsList td {
    padding: 8px;
    border-bottom: 1px solid #f1f2f5;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    width: 100%;
    padding: 13px 16px;
    border-radius: 6px;
    background-color: #db5d36;
    cursor: pointer;
    border: none;
}

.logout-btn:hover {
    background-color: #c94b24;
    color: #fff;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    color: #111827;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.btn-primary-full {
    width: 100%;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.btn-hr-login {
    background: #4f46e5;
}
.btn-hr-login:hover {
    background: #4338ca;
}

.alert-box {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.logoProvider {
    position: fixed;
    z-index: 1;
    bottom: 18px;
    right: 22px;
    max-height: 36px;
    opacity: 0.9;
}

.small-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.small-link:hover {
    color: #111827;
    text-decoration: underline;
}

/* FullCalendar event color coding (shared between Employee & HR) */
.event-clock_in {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}
.event-clock_out {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}
.event-break_start, .event-break_end {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #fff !important;
}
.event-lunch_start, .event-lunch_end {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
.event-work-summary {
    background-color: #0f172a !important;
    border-color: #0f172a !important;
    color: #fff !important;
    font-weight: 600;
}
.event-vacation-approved {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #fff !important;
    font-weight: 600;
}
.event-vacation-pending {
    background-color: #f59e0b !important;
    border-color: #d97706 !important;
    color: #111827 !important;
    font-weight: 600;
}

/* HR Backoffice layout */
.hr-sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #111827;
    color: #fff;
    z-index: 100;
}

.hr-sidebar .nav-link {
    color: #d1d5db;
    border-radius: 6px;
    padding: 9px 12px;
    font-weight: 500;
}

.hr-sidebar .nav-link:hover,
.hr-sidebar .nav-link.active {
    background: #1f2937;
    color: #fff;
}

.hr-main {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .hr-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
    .hr-main {
        margin-left: 0;
        width: 100%;
    }
    .logoProvider {
        display: none;
    }
}
