/* IADK — temë Laxom (mail-view): blu, e bardhë, sfond i butë */

:root {
    --iadk-primary: #2f6bff;
    --iadk-primary-dark: #1f56e0;
    --iadk-primary-deeper: #163db8;
    --iadk-primary-light: #eef3ff;
    --iadk-primary-soft: rgba(47, 107, 255, 0.12);
    --iadk-blue: #2f6bff;
    --iadk-blue-dark: #1f56e0;
    --iadk-blue-light: #eef3ff;
    --iadk-blue-soft: rgba(47, 107, 255, 0.12);
    --iadk-dark: #1e2433;
    --iadk-text: #1e2433;
    --iadk-muted: #8b93a7;
    --iadk-border: #e8ecf4;
    --iadk-bg: #f4f6fb;
    --iadk-shadow: 0 8px 28px rgba(30, 36, 51, 0.06);
    --sidebar-bg: #ffffff;
    --sidebar-text: #8b93a7;
    --sidebar-text-active: #2f6bff;
    --sidebar-brand: #2f6bff;
    --bs-primary: #2f6bff;
    --bs-primary-rgb: 47, 107, 255;
    --bs-link-color: #2f6bff;
    --bs-link-hover-color: #1f56e0;
}

body {
    background-color: var(--iadk-bg);
    color: var(--iadk-text);
}

.app-shell {
    background-color: var(--iadk-bg);
    background-image: none;
}

.app-main {
    background-color: var(--iadk-bg);
    background-image: radial-gradient(#d9dee8 0.85px, transparent 0.85px);
    background-size: 18px 18px;
}

/* ---- Sidebar PreSkool ---- */
.sidebar-panel {
    color: #6b7280;
    background: #fff;
    background-image: none;
    border-right: 1px solid #eef0f4;
    box-shadow: none;
}

.sidebar-brand {
    height: 4rem;
    border-bottom: none;
    padding: 0 1.05rem;
}

.sidebar-brand-link {
    color: #111827;
}

.sidebar-brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: #2f6bff;
    box-shadow: 0 6px 14px rgba(47, 107, 255, 0.25);
    font-size: 0.72rem;
}

.sidebar-brand-logo {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    box-shadow: none;
}

.sidebar-brand-name {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
}

.sidebar-close {
    color: #9ca3af;
}

.sidebar-search {
    padding: 0 0.95rem 0.85rem;
    border-bottom: none;
}

.sidebar-search__icon {
    color: #9ca3af;
}

.sidebar-search__input {
    border-color: #e8ecf4;
    background: #f7f8fc;
    color: #1e2433;
    border-radius: 999px;
}

.sidebar-search__input::placeholder {
    color: #9ca3af;
}

.sidebar-search__input:focus {
    border-color: #c7d2fe;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.sidebar-search__empty {
    color: #9ca3af;
}

.sidebar-org {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #eef0f4;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.sidebar-org__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-org__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-org__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.sidebar-org__name {
    color: #111827;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-org__sub {
    color: #9ca3af;
    font-size: 0.7rem;
}

.sidebar-nav {
    padding: 0.25rem 0.85rem 1rem;
    scrollbar-color: #d1d5db transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
}

.sidebar-section {
    margin: 0.85rem 0.55rem 0.4rem;
    color: #9ca3af;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-link {
    gap: 0.6rem;
    padding: 0.52rem 0.7rem;
    margin-bottom: 0.1rem;
    border-radius: 0.7rem;
    font-weight: 500;
}

.sidebar-link--idle {
    color: #6b7280;
}

.sidebar-link--idle:hover {
    background: #f5f6f8;
    color: #111827;
}

.sidebar-link--active,
.sidebar-link--active:hover {
    color: #fff;
    background: #2dd4bf;
    box-shadow: none;
    font-weight: 600;
}

.sidebar-link--sub {
    padding: 0.4rem 0.7rem;
    font-weight: 400;
    gap: 0.65rem;
}

.sidebar-link--sub.sidebar-link--active,
.sidebar-link--sub.sidebar-link--active:hover {
    background: transparent;
    color: #2dd4bf;
    box-shadow: none;
    font-weight: 600;
}

.sidebar-link--sub.sidebar-link--idle:hover {
    background: transparent;
    color: #111827;
}

.sidebar-link-icon,
.sidebar-link-icon--idle,
.sidebar-link--idle:hover .sidebar-link-icon--idle,
.sidebar-nav-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: transparent;
    color: inherit;
    border-radius: 0;
}

.sidebar-link--active .sidebar-link-icon,
.sidebar-link--active .sidebar-link-icon--active,
.sidebar-nav-toggle.is-open .sidebar-nav-toggle-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.sidebar-link-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 0.15rem;
    background: #d1d5db;
    box-shadow: none;
}

.sidebar-link-dot--active {
    background: #2dd4bf;
    box-shadow: none;
}

.sidebar-link-glow {
    display: none;
}

.sidebar-nav-toggle {
    color: #6b7280;
    font-weight: 500;
    border-radius: 0.7rem;
    padding: 0.52rem 0.7rem;
}

.sidebar-nav-toggle:hover {
    background: #f5f6f8;
    color: #111827;
}

.sidebar-nav-toggle.is-open,
.sidebar-nav-toggle.is-open:hover {
    background: #2dd4bf;
    color: #fff;
}

.sidebar-nav-toggle-chevron {
    display: none;
}

.sidebar-nav-toggle::after {
    content: "+";
    margin-left: auto;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.sidebar-nav-toggle.is-open::after {
    content: "−";
    color: #fff;
}

.sidebar-nav-toggle--sub::after {
    font-size: 0.9rem;
}

.sidebar-submenu {
    margin: 0.15rem 0 0.4rem;
    padding-left: 1.85rem;
    border-left: none;
}

.sidebar-footer {
    border-top: none;
    padding: 0.75rem 0.95rem 1rem;
}

.sidebar-theme-switch {
    background: #f5f6f8;
    border-radius: 999px;
}

.sidebar-theme-btn.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.sidebar-user {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 0.9rem;
    padding: 0.5rem 0.6rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
}

.sidebar-user-avatar {
    background: #2f6bff;
}

.sidebar-user-name {
    color: #111827;
}

.sidebar-user-chevron {
    margin-left: auto;
    color: #9ca3af;
    flex-shrink: 0;
}

/* ---- Topbar ---- */
.app-topbar {
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--iadk-border);
    box-shadow: none;
    gap: 1rem;
}

.app-topbar-title {
    color: var(--iadk-text);
    font-size: 1rem;
    font-weight: 600;
}

.app-topbar-search {
    flex: 1;
    max-width: 28rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    background: #f7f8fc;
    border: 1px solid var(--iadk-border);
    border-radius: 999px;
    min-width: 0;
}

.app-topbar-search svg {
    color: var(--iadk-muted);
    flex-shrink: 0;
}

.app-topbar-search-input {
    border: none;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    color: var(--iadk-text);
    outline: none;
}

.app-topbar-search-input::placeholder {
    color: var(--iadk-muted);
}

.app-topbar-actions .btn-outline-secondary,
.app-topbar-actions .notif-bell-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border-color: var(--iadk-border) !important;
    color: #6b7388;
    background: #fff;
}

.app-topbar-actions .btn-outline-secondary:hover,
.app-topbar-actions .notif-bell-btn:hover {
    background: #f7f8fc;
    color: #2f6bff;
    border-color: #d5ddf0 !important;
}

.app-topbar-user-pill {
    border-color: var(--iadk-border);
    background: #fff;
    border-radius: 999px;
}

.app-topbar-user-pill:hover {
    background: #f7f8fc;
    border-color: #d5ddf0;
}

.app-topbar-avatar {
    background: #2f6bff;
}

.notif-bell-btn {
    border-color: var(--iadk-border) !important;
    border-radius: 999px !important;
}

/* ---- Kartat & modulet ---- */
.card-section,
.stat-card,
.leave-stat-card {
    border: 1px solid var(--iadk-border);
    border-radius: 1.1rem;
    box-shadow: var(--iadk-shadow);
    background: #fff;
}

.card-section > .card-header {
    background: #fff !important;
    border-bottom-color: var(--iadk-border);
    color: var(--iadk-text);
    font-weight: 600;
}

.page-header h1,
.page-header .h3,
.module-page > h4 {
    color: var(--iadk-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.module-page > .text-muted,
.page-header .text-muted {
    color: var(--iadk-muted) !important;
}

.table thead.table-light th,
.table > thead > tr > th {
    background: #f7f8fc !important;
    border-bottom-color: var(--iadk-border) !important;
    color: #8b93a7;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-hover > tbody > tr:hover {
    background-color: #f7f8fc;
}

.app-content {
    padding: 1.5rem 1.85rem 2rem;
}

.app-footer {
    background: transparent;
    border-top-color: transparent;
    color: var(--iadk-muted);
}

/* ---- Butonat (Compose blu / Replay i errët) ---- */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2f6bff;
    --bs-btn-border-color: #2f6bff;
    --bs-btn-hover-bg: #1f56e0;
    --bs-btn-hover-border-color: #1f56e0;
    --bs-btn-active-bg: #163db8;
    --bs-btn-active-border-color: #163db8;
    --bs-btn-disabled-bg: #2f6bff;
    --bs-btn-disabled-border-color: #2f6bff;
    background: #2f6bff;
    border-color: #2f6bff;
    box-shadow: none;
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1f56e0;
    box-shadow: none;
    filter: none;
}

.btn-outline-primary {
    --bs-btn-color: #2f6bff;
    --bs-btn-border-color: #2f6bff;
    --bs-btn-hover-bg: #2f6bff;
    --bs-btn-hover-border-color: #2f6bff;
    --bs-btn-active-bg: #1f56e0;
    --bs-btn-active-border-color: #1f56e0;
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    font-weight: 600;
}

.btn-outline-secondary {
    border-color: var(--iadk-border);
    color: var(--iadk-text);
    border-radius: 999px;
    background: #fff;
}

.btn-outline-secondary:hover {
    background: #1e2433;
    border-color: #1e2433;
    color: #fff;
}

.btn-secondary,
.btn-dark {
    --bs-btn-bg: #1e2433;
    --bs-btn-border-color: #1e2433;
    --bs-btn-hover-bg: #121722;
    --bs-btn-hover-border-color: #121722;
    border-radius: 999px;
    font-weight: 600;
}

.btn-outline-danger {
    border-radius: 999px;
}

.btn-success {
    --bs-btn-bg: #22a55b;
    --bs-btn-border-color: #22a55b;
    --bs-btn-hover-bg: #1a7a44;
    --bs-btn-hover-border-color: #1a7a44;
    border-radius: 999px;
}

.btn-sm {
    border-radius: 999px;
}

.text-primary {
    color: #2f6bff !important;
}

.bg-primary {
    background-color: #2f6bff !important;
}

.badge.bg-primary {
    background-color: #2f6bff !important;
}

a:not(.btn):not(.sidebar-link):not(.sidebar-brand-link):not(.nav-link):not(.dropdown-item):not(.page-link):not(.list-group-item):not(.dash-btn-export):not(.dash-btn-outline):not(.dash-lajm):not(.dash-lajm__hit):not(.dash-lajm__act):not(.proc-card__main):not(.proc-card__action):not(.evidenca-pill):not(.hr-dir__btn):not(.hr-chip):not(.hr-leave--link):not(.hr-person--link):not(.att-btn):not(.att-link):not(.att-chip):not(.attendance-view-btn):not(.attendance-day-link):not(.attendance-hour-cell):not(.roles-btn) {
    color: #2f6bff;
}

a:not(.btn):not(.sidebar-link):not(.sidebar-brand-link):not(.nav-link):not(.dropdown-item):not(.page-link):not(.list-group-item):not(.dash-btn-export):not(.dash-btn-outline):not(.dash-lajm):not(.dash-lajm__hit):not(.dash-lajm__act):not(.proc-card__main):not(.proc-card__action):not(.evidenca-pill):not(.hr-dir__btn):not(.hr-chip):not(.hr-leave--link):not(.hr-person--link):not(.att-btn):not(.att-link):not(.att-chip):not(.attendance-view-btn):not(.attendance-day-link):not(.attendance-hour-cell):not(.roles-btn):hover {
    color: #1f56e0;
}

.dash-btn-export,
.dash-btn-export:hover,
.dash-btn-export:focus {
    color: #fff !important;
    text-decoration: none;
}

.dash-btn-outline,
.dash-btn-outline:hover,
.dash-btn-outline:focus {
    color: var(--dash-text, #1e2433);
    text-decoration: none;
}

.dash-btn-outline:hover {
    color: #2f6bff !important;
}

.form-control,
.form-select {
    border-color: var(--iadk-border);
    border-radius: 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #b9c8ff;
    box-shadow: 0 0 0 0.2rem rgba(47, 107, 255, 0.15);
}

.form-check-input:checked {
    background-color: #2f6bff;
    border-color: #2f6bff;
}

.nav-tabs {
    border-bottom-color: var(--iadk-border);
}

.nav-tabs .nav-link {
    color: var(--iadk-muted);
    border: none;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: #2f6bff;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #2f6bff;
    background: transparent;
    border-bottom: 2px solid #2f6bff;
    font-weight: 600;
}

.alert {
    border-radius: 0.9rem;
    border: 1px solid transparent;
}

.progress {
    background: var(--iadk-border);
    border-radius: 999px;
}

.progress-bar {
    background: #2f6bff;
}

.dropdown-menu {
    border: 1px solid var(--iadk-border);
    border-radius: 0.9rem;
    box-shadow: var(--iadk-shadow);
}

@media (max-width: 991.98px) {
    .app-topbar-search {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .app-topbar-title {
        display: none;
    }
}

.kanban-column--active {
    border-color: #2f6bff;
    box-shadow: 0 0 0 2px rgba(47, 107, 255, 0.12);
}

.kanban-column--active .kanban-column-num {
    background: #2f6bff;
    color: #fff;
}

.procurement-progress .progress-bar {
    background: #2f6bff;
}

.badge.bg-primary-subtle.text-primary {
    background-color: var(--iadk-primary-soft) !important;
    color: #2f6bff !important;
}

.thirrje-facebook-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #dbe7ff;
    border-radius: 1.1rem;
    background: #f4f7ff;
}

.thirrje-facebook-banner--highlight {
    border-color: #1877F2;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.16);
}

.thirrje-facebook-banner__text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    color: #1e3a5f;
}

.thirrje-facebook-banner__text strong {
    font-size: 0.95rem;
}

.thirrje-facebook-banner__text span {
    font-size: 0.85rem;
    color: #475569;
}

.thirrje-facebook-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
    font-weight: 600;
}

.btn-facebook:hover,
.btn-facebook:focus {
    background: #166fe0;
    border-color: #166fe0;
    color: #fff;
}
