﻿/* LOGIN & REGISTER */
.login {
    max-width: 360px !important;
    height: 360px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    justify-content: center;
    border: 3px solid rgba(218, 219, 222, 0.5);
    border-radius: 20px;
    margin: 120px auto;
    text-align: center;
}

.register {
    max-width: 360px !important;
    width: 100%;
    height: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
    justify-content: center;
    background: #fff;
    border: 3px solid rgba(218, 219, 222, 0.5);
    border-radius: 20px;
    margin: 120px auto;
    text-align: center;
}

/* ICONS & SEARCH */
.svg-icon {
    margin-top: 3px !important;
    max-width: 20px !important;
    width: 20px !important;
    max-height: 20px !important;
    height: 20px !important;
    stroke-width: 15px !important;
}

.search {
    background: #fff;
    width: 222px;
    height: 34px;
    position: relative !important;
    right: 95px !important;
    border-radius: 8px;
}

.search-btn {
    background: #007bff;
    height: 34px;
    position: relative !important;
    right: 95px !important;
    border-radius: 8px;
}

/* FOOTER */
/*footer {
    background: #ffffff;
    height: 60px;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100% !important;
    text-align: center !important;
}*/

/* MISC */
.dt-container {
    margin: 50px !important;
}

.card, card-body {
    border: 3px solid var(--app-primary)!important; 
}

.logo {
    background-color: #FFFFFF !important;
    border-radius: 8px;
}

.page-light h1, .page-light h2, .page-light h3,
.page-light h4, .page-light h5, .page-light h6 {
    color: #000; /* no !important */
}

.Progress {
    width: 50%;

    margin-bottom: 10px;
    border-radius: 10px;
}

.Bar {
    width: 45%;
    height: 30px;
    background-color: #3498db;
    padding: 0 10px;
    line-height: 30px;
    color: #fff;
    display: block;
    border-radius: 10px;
}

.name {
    float: left;
    font-size: 14px !important;
    color: #000;
}

.pct {
    float: right;
}

/* DROPDOWNS */
.app-header .dropdown-toggle {
    width: 80px;
    background: #3b82f6 !important;
    color: #fff;
    height: 35px;
}

.app-header .dropdown-toggle::after {
    display: none;
}

.btn-profile {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.usernamePlaceholder {
    text-decoration: none !important;
}

/* LAYOUT VARS */
:root {
    --sx-sidebar: 250px;
    --sx-sidebar-collapsed: 72px;
    /* Brand primary fallback if not defined elsewhere */
    --app-primary: #2563eb;
}

/* HEADER BEHAVIOR */
.has-sidebar .app-header {
    transition: margin-left .2s ease;
}

@media (min-width: 992px) {
    .has-sidebar:not(.sidebar-collapse) .app-header {
        margin-left: var(--sx-sidebar);
    }

    .has-sidebar.sidebar-collapse .app-header {
/*        margin-left: var(--sx-sidebar-collapsed);*/
    }
}

@media (max-width: 991.98px) {
    .has-sidebar.sidebar-open .app-header {
        margin-left: var(--sx-sidebar);
    }
}

/* Header above sidebar */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1051;
}

.app-sidebar {
    z-index: 1040;
}

.app-header .container-fluid {
    display: flex;
    align-items: center;
}

/* Toggle button cleanup */
#header-brand-wrap .btn {
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Sidebar starts below header */
.app-sidebar .sidebar-wrapper {
    padding-top: 60px;
}

/* ============================
   USER PILL BUTTON:
   ============================ */
/* === User profile pill (header) === */
:root {
    --app-primary: #2563eb; /* base blue */
    --app-primary-dark: #1e40af; /* hover/active (slightly darker) */
}

.app-header .user-pill {
    /* appearance */
    background-color: var(--app-primary) !important;
    color: #fff !important;
    /* kill borders/outlines/shadows everywhere */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    /* size/shape */
    height: 36px;
    width: 100px; /* fixed width */
    padding: 0 10px;
    border-radius: 8px !important;
    /* layout */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal !important; /* allow two lines */
    overflow: hidden;
    text-decoration: none !important;
}

/* hover / focus / active / dropdown-open all slightly darker blue, no border */
.app-header .user-pill:hover,
.app-header .user-pill:focus,
.app-header .user-pill:active,
.app-header .user-pill.show,
.app-header .dropdown.show .user-pill {
    background-color: var(--app-primary-dark) !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* two-line name, ellipsis each line */
.app-header .user-name-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    text-align: center;
    max-width: 100%;
}

.app-header .user-first,
.app-header .user-last {
    display: block;
    font-size: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ensure inner spans inherit color/no-underline */
.app-header .user-pill * {
    color: inherit !important;
    text-decoration: none !important;
}

/* dropdown width */
.user-menu-container .dropdown-menu {
    min-width: 240px;
}

/* brand colors */
:root {
    --app-primary: #2563eb; /* base blue */
    --app-primary-dark: #1e40af; /* hover/active */
}

/* === User profile pill === */
.app-header .user-pill {
    background-color: var(--app-primary) !important;
    color: #fff !important;
    /* kill borders/outlines/shadows */
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    /* size/shape */
    height: 36px;
    width: 100px; /* your fixed width */
    padding: 0 10px;
    border-radius: 8px !important;
    /* layout */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal !important; /* allow two lines */
    overflow: hidden;
    text-decoration: none !important;
}

/* darker hover/focus/active/open */
.app-header .user-pill:hover,
.app-header .user-pill:focus,
.app-header .user-pill:active,
.app-header .user-pill.show,
.app-header .dropdown.show .user-pill {
    background-color: var(--app-primary-dark) !important;
    color: #fff !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border: 2px solid var(--app-primary);
}

/* === Kill borders/shadows on surrounding containers === */
.app-header .nav-item.auth-container,
.app-header .nav-item.auth-container *,
.app-header .user-menu-container,
.app-header #logoutForm {
    border: 0 !important;
    box-shadow: none !important;
}



/* Dropdown menu: remove its border/shadow so it isn't seen as a "border" */
.app-header .dropdown-menu {
    border: 0 !important;
    box-shadow: none !important; /* set to e.g. var(--bs-box-shadow) if you want a soft shadow */
    margin-top: 6px; /* reduce any visible white gap; set 0 if you prefer */
}


/* Header search: remove old positional offsets so it can sit next to the pill */
.app-header .app-search .search,
.app-header .app-search .search-btn {
    position: static !important;
    right: auto !important;
}

/* Optional: set a consistent width for the input in the header */
.app-header .app-search .search {
    width: 220px; /* tweak as you like */
}

/* Ensure the right-side nav uses exactly 16px spacing between children */
.app-header .navbar-nav.ms-auto {
    gap: 1rem !important; /* 1rem ≈ 16px */
    align-items: center;
}

.user-menu-container {
    margin: 0px;
}

/* === Restyle: Payslips tile === */
.section-item-narrow[data-id="pay-slips"] .payslip-container h6 {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.section-item-narrow[data-id="pay-slips"] .payslip-content {
    min-height: 160px; /* keeps message centered nicely */
}

.payslip-content-all {
    text-align: center;
    margin-top: 12px; /* spacing from content */
}

.payslip-content-all a {
    text-decoration: none;
    font-weight: 600;
}

.payslip-content-all a:hover {
    text-decoration: underline;
}

.section-celebration {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.section-celebration .celebration-section {
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    height: 149px;
    background: rgba(0, 0, 0, 0.05);
}

.section-celebration .celebration-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-celebration .no-celebrations {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 0;
}

/* Optional: subtle fade-in */
.fade-in {
    animation: fadeIn ease 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.celebration-rows {
    height: 110px !important;
    overflow-y: auto;
    overflow-x: hidden;
    border: solid lightgrey 1px;
    border-radius: 8px;
    padding: 5px;
    background: #ffffff;
}


/* -------------Employee Snapshot----------- */

/* Tile wrapper */
#employee-snapshot-tile.section-item-narrow,
#employee-snapshot-tile.section-item-wide {
    padding: 16px 20px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Snapshot container */
.emp-snap {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f3f4ff 0%, #eef6ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.20);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emp-snap-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.emp-snap-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
}

.emp-snap-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2933;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-snap-position {
    font-size: 0.8rem;
    color: #374151;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-snap-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.emp-snap-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    gap: 8px;
}

.emp-snap-caption {
    color: #6b7280;
    flex: 0 0 auto;
    font-weight: 700;
}

.emp-snap-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-snap-loading {
    opacity: 0.7;
    font-style: italic;
}

.emp-snap-empty {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}



/* --------RSS Feed------------- */
/* ===== Tile shell ===== */
#rss-feed-tile.section-item-narrow {
    padding: 16px 20px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rss-tile {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f3f4ff 0%, #eef6ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.20);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rss-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rss-header-left {
    display: flex;
    flex-direction: column;
}

.rss-title {
    /*    font-size: 0.95rem;
    font-weight: 600;*/
    position: relative;
    bottom: 1px;
    left: 22px;
}

.rss-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.rss-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rss-mode-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 500;
}

.rss-settings-btn {
    border: none;
    background: transparent;
    padding: 4px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .rss-settings-btn svg {
        width: 16px;
        height: 16px;
    }

    .rss-settings-btn:hover {
        background: rgba(15, 23, 42, 0.08);
    }

/* ===== Panels ===== */
.rss-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#rss-items-panel,
#rss-config-panel {
    width: 100%;
}

/* ===== Items list (reading mode) ===== */
.rss-items-list {
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.rss-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.rss-item:last-child {
    border-bottom: none;
}

.rss-item-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d4ed8;
    text-decoration: none;
}

.rss-item-link:hover {
    text-decoration: underline;
}

.rss-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.rss-item-source {
    font-weight: 500;
}

.rss-item-age {
    font-style: italic;
}

/* ===== States ===== */
.rss-loading,
.rss-empty,
.rss-error {
    font-size: 0.8rem;
    padding: 6px 0;
}

.rss-loading {
    color: #6b7280;
    font-style: italic;
}

.rss-empty {
    color: #6b7280;
    font-style: italic;
}

.rss-error {
    color: #b91c1c;
    font-weight: 500;
}

/* ===== Config mode ===== */
.rss-config-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.rss-config-caption {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.rss-config-list-wrap {
    max-height: 165px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #f9fafb;
    padding: 4px;
    margin-bottom: 6px;
}

.rss-feed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px;
    border-radius: 6px;
    cursor: pointer;
    gap: 8px;
}

.rss-feed-row:hover {
    background: rgba(191, 219, 254, 0.5);
}

.rss-feed-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.rss-feed-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rss-feed-category {
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rss-feed-toggle {
    flex: 0 0 auto;
}

.rss-config-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.rss-config-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-weight: 500;
}

.btn-rss {
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border: none;
    cursor: pointer;
}

.btn-rss-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-rss-primary:hover {
    background: #1d4ed8;
}

.btn-rss-ghost {
    background: transparent;
    color: #374151;
}

.btn-rss-ghost:hover {
    background: rgba(148, 163, 184, 0.2);
}


/*--------Weather--------*/
#weather-tile.section-item-narrow,
#weather-tile.section-item-wide {
    padding: 16px 20px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-tile {
    width: 100%;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f3f4ff 0%, #eef6ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.20);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 310px;
}

.weather-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.weather-header-left h6 {
    margin-bottom: 2px;
}

.weather-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.weather-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.weather-settings-btn {
    border: none;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1d4ed8;
}

    .weather-settings-btn:hover {
        background: rgba(37, 99, 235, 0.16);
    }

    .weather-settings-btn svg {
        width: 18px;
        height: 18px;
    }

.weather-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.weather-temp {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
    min-width: 64px;
}

.weather-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.weather-desc {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
}

.weather-location {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-icon {
    font-size: 1.6rem;
}

/* Extra line: humidity, wind, rain */
.weather-extra {
    font-size: 0.78rem;
    color: #4b5563;
    margin-top: 2px;
}

/* Status line */
.weather-status {
    font-size: 0.78rem;
    margin-top: 4px;
}

.weather-status-info {
    color: #4b5563;
}

.weather-status-ok {
    color: #047857;
}

.weather-status-error {
    color: #b91c1c;
}

/* Config box */
.weather-config {
    margin-top: 6px;
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 8px;
    background: rgba(248, 250, 252, 0.85);
}

.weather-config-row {
    margin-bottom: 6px;
}

.weather-city-input {
    font-size: 0.85rem;
    height: 30px;
}

.weather-config-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 3px;
}

.btn-weather {
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 3px 10px;
    border: none;
    cursor: pointer;
}

.btn-weather-primary {
    background: #2563eb;
    color: #fff;
}

    .btn-weather-primary:hover {
        background: #1d4ed8;
    }

.btn-weather-ghost {
    background: transparent;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

    .btn-weather-ghost:hover {
        background: #f3f4f6;
    }

.weather-config-hint {
    font-size: 0.72rem;
    color: #6b7280;
}

/* Hourly mini-forecast */
.weather-hourly {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-hourly-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.weather-hourly-strip {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.weather-hour-chip {
    flex: 0 0 auto;
    min-width: 54px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 2px 6px;
    font-size: 0.72rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
}

.weather-hour-time {
    color: #6b7280;
}

.weather-hour-temp {
    font-weight: 600;
    color: #1f2933;
}

.weather-hour-rain {
    font-size: 0.7rem;
    color: #2563eb;
}