﻿/* Sidebar główny */
.custom-sidebar {
    background-color: #f7f9fc !important;
    padding: 12px;
    border-right: none;
}

    /* Formatowanie elementów listy menu */
    .custom-sidebar .menu-inner .menu-item {
        margin-bottom: 4px;
    }

    .custom-sidebar .menu-inner .menu-link {
        color: #5d6a83;
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 12px;
        padding: 12px 16px;
        transition: all 0.2s ease;
    }

    /* Hover na nieaktywnym elemencie */
    .custom-sidebar .menu-inner .menu-item:not(.active) > .menu-link:hover {
        background-color: #ebf0f7;
        color: #1a365d;
    }

    /* Aktywny element (ciemnoniebieski przycisk) - operator '>' zapobiega podświetlaniu dzieci */
    .custom-sidebar .menu-inner .menu-item.active > .menu-link {
        background-color: #1a3b5d !important;
        color: #ffffff !important;
        box-shadow: none;
    }

        .custom-sidebar .menu-inner .menu-item.active > .menu-link .menu-icon {
            color: #ffffff !important;
        }

    /* Ikony w menu */
    .custom-sidebar .menu-icon {
        color: #7c8ba1;
        font-size: 1.25rem;
        margin-right: 12px;
    }

    /* Nagłówek sekcji (np. KONTO BIURA) */
    .custom-sidebar .menu-header {
        margin-top: 24px;
        margin-bottom: 8px;
        padding-left: 12px;
    }

    .custom-sidebar .menu-header-text {
        color: #9aa8bc !important;
        font-weight: 700;
        letter-spacing: 0.8px;
        font-size: 0.75rem;
    }

    /* Badge (zaokrąglone licznikowe kółka) */
    .custom-sidebar .bg-badge-light {
        background-color: #e2edff;
        color: #2b6cb0;
        font-weight: 700;
        font-size: 0.75rem;
        padding: 4px 8px;
    }

/* Dolny baner pomocniczy */
.menu-footer-card {
    background-color: #1a3b5d;
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    margin-top: auto;
    margin-bottom: 12px;
}

    .menu-footer-card h5 {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .menu-footer-card p {
        color: #c0d1e5;
        font-size: 0.825rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    .menu-footer-card .btn-contact {
        background-color: #ffffff;
        color: #1a3b5d;
        font-weight: 700;
        font-size: 0.875rem;
        border-radius: 10px;
        width: 100%;
        padding: 8px;
        text-align: center;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

        .menu-footer-card .btn-contact:hover {
            background-color: #f0f4f8;
            color: #102a43;
        }
.menu-sub {
    margin-left:10px;
}
/* Tytuł i nagłówki */
.dashboard-title {
    color: #1a3b5d;
    font-size: 1.8rem;
}

/* Kropka "Konto aktywne" */
.status-pill {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

/* Kafelki statystyk */
.stat-card {
    border-radius: 16px !important;
    background-color: #ffffff;
}

.stat-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.bg-light-blue {
    background-color: #eef2ff;
    color: #4f46e5 !important;
}

.bg-light-pink {
    background-color: #ffe4e6;
    color: #e11d48 !important;
}

.bg-light-purple {
    background-color: #f3e8ff;
    color: #9333ea !important;
}

.stat-label {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-value {
    color: #111827;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.stat-subtext {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Karta produktu */
.product-card {
    border-radius: 20px !important;
    background-color: #ffffff;
}

.product-avatar {
    width: 56px;
    height: 56px;
    background-color: #1d3557;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tagi pod opisem */
.tag-badge {
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
}

/* Przyciski w karcie */
.min-w-180 {
    min-width: 170px;
}

.btn-custom-blue {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 16px;
}

    .btn-custom-blue:hover {
        background-color: #1d4ed8 !important;
    }

.btn-custom-outline {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 16px;
}

    .btn-custom-outline:hover {
        background-color: #f9fafb;
        color: #111827;
    }

/* Badge statusu AKTYWNY */
.bg-success-subtle {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    font-size: 0.65rem;
    padding: 4px 8px;
}

.user-pill-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50rem;
    padding: 4px 14px 4px 5px !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

    .user-pill-btn:hover,
    .user-pill-btn:focus,
    .show > .user-pill-btn {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    }

    /* Tekst i typografia wewnątrz pigułki */
    .user-pill-btn .user-name {
        font-size: 0.875rem;
        line-height: 1.1;
        color: #1e293b !important;
    }

    .user-pill-btn .user-role {
        font-size: 0.75rem;
        line-height: 1.1;
        color: #64748b !important;
    }

    /* Styl awatara */
    .user-pill-btn .avatar1 {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
    }

.icon-box {
    width: 40px;
    height: 40px;
}

.office-info-list .border-bottom {
    border-color: #f1f3f7 !important;
}

.office-info-list span.text-secondary {
    color: #727e8c !important;
    font-size: 0.95rem;
}

.office-info-list span.text-dark {
    color: #1a2e4b !important;
    font-size: 0.95rem;
}

/* Box SSO */
.sso-box {
    background-color: #eef2f8;
}

.sso-icon-bg {
    width: 44px;
    height: 44px;
    background-color: #12253f;
}

    .sso-icon-bg i {
        color: #ffb800 !important;
    }

/* Avatary użytkowników */
.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.bg-dark-navy {
    background-color: #1c2d42;
}

.bg-blue {
    background-color: #2870ed;
}

.bg-green {
    background-color: #139a5e;
}

.bg-purple {
    background-color: #7356f1;
}

/* Etykiety ról (Administrator / Księgowy) */
.role-badge {
    background-color: #f2f4f8;
    color: #515f72;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
}

/* Przycisk z przerywaną ramką */
.btn-dashed {
    border: 1px dashed #d9dee3;
    background-color: #ffffff;
    color: #1a2e4b !important;
    transition: all 0.2s ease-in-out;
}

    .btn-dashed:hover {
        background-color: #f8f9fa;
        border-color: #b0b7c0;
    }

/* Tło banera "Rozszerz swoje biuro" */
.expand-office-banner {
    background-color: #112846; /* Ciemnoniebieski odcień tła */
    border-radius: 20px !important;
}

/* Plakietka "POLECANE DLA CIEBIE" nad kartą */
.badge-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2870ed;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(40, 112, 237, 0.4);
}

/* Ikona z inicjałami (KR, ZE, MT, MV) */
.product-icon {
    width: 44px;
    height: 44px;
    background-color: #172d48;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Kategoria produktu (niebieski napis nad nazwą) */
.product-category {
    display: block;
    color: #2870ed;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

/* Pigułki ze stanem/statusami (Zielony, Pomarańczowy, Niebieski) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.status-green {
    background-color: #eaf8f1;
    color: #139a5e;
}

.status-orange {
    background-color: #fef5e7;
    color: #d97706;
}

.status-blue {
    background-color: #eef5ff;
    color: #2563eb;
}

/* Przycisk jasny / obramowany w kartach */
.btn-outline-custom {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #1a2e4b;
    transition: all 0.2s ease-in-out;
}

    .btn-outline-custom:hover {
        background-color: #f8fafc;
        border-color: #cbd5e1;
        color: #0f172a;
    }