body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
}

/* Navbar & Sidebar */
.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.sidebar {
    background-color: #2c2c2c;
    color: white;
}

.sidebar a {
    color: white;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #444;
    color: #fff;
}

.sidebar .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Icons */
.dashboard-icon,
.sidebar-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.dashboard-icon {
    max-height: 100px;
    max-width: 100%;
    width: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sidebar-logo {
    max-height: 50px;
}

/* Progress bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 10px;
}

.progress {
    flex-grow: 1;
    height: 22px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    height: 100%;
    transition: width 0.4s ease;
}

/* Form styling */
form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #007bff;
}

/* Button Styling */
.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 0;
    font-size: 1rem;
    border-radius: 6px;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Outline Buttons */

.btn-outline-primary {
    color: #007bff;
    border: 1px solid #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.btn-outline-secondary {
    color: #6c757d;
    border: 1px solid #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-outline-danger {
    color: #dc3545;
    border: 1px solid #dc3545;
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.btn-outline-danger:focus,
.btn-outline-danger:active {
    box-shadow: none !important;
    outline: none !important;
}

/* Ujednolicenie stylu <button> i <a> w klasach Bootstrapowych */
.btn {
    box-shadow: none !important;
    transition: all 0.15s ease-in-out;
}

/* Usuń dziwny cień lub podświetlenie przy kliknięciu */
.btn:focus, .btn:active {
    box-shadow: none !important;
    outline: none !important;
}

/* Opcjonalnie - usuń efekt wcięcia/aktywacji */
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background-color: #fff !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Dopasuj padding */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
}

#.card:hover {
#  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
#  transform: scale(1.01);
#  transition: all 0.2s ease-in-out;
#}

 .fa-circle-info, .fa-bell, .fa-circle-user {
  vertical-align: middle;
}

/* =========================================
   MODUŁ POWIADOMIEŃ (DROPDOWN)
   ========================================= */

/* --- Trigger (Dzwonek) --- */
.notification-bell {
    position: relative;
    color: #495057;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.notification-bell:hover, .notification-bell[aria-expanded="true"] {
    background-color: #e9ecef; /* Lekko ciemniejszy niż tło body */
    color: #212529;
}

/* Animacja pulsowania dzwonka */
.bell-shake {
    animation: bell-swing 2s infinite ease-in-out;
    transform-origin: top center;
}
@keyframes bell-swing {
    0% { transform: rotate(0deg); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-10deg); }
    15% { transform: rotate(5deg); }
    20% { transform: rotate(-5deg); }
    25% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Czerwona kropka (Badge) na dzwonku */
.bell-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    border: 2px solid #fff; /* Biała obwódka */
    background-color: #dc3545;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.bell-badge.has-count {
    width: auto;
    height: auto;
    padding: 0.1rem 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    top: 0px;
    right: -2px;
    color: white;
}

/* --- Dropdown Menu (Kontener) --- */
.notification-menu {
    width: 320px;
    padding: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 0.5rem !important; /* Odstęp od paska */
}

.notification-header {
    background-color: #ffffff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notification-header-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #343a40;
    margin: 0;
}

/* --- Elementy Listy --- */
.notification-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: #495057;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f8f9fa;
}
.notification-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}
.notification-item:last-child {
    border-bottom: none;
}

/* Ikony kategorii (Avatary w liście) */
.notify-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Tła dla ikon (Soft Colors) */
.bg-soft-primary { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.bg-soft-warning { background-color: rgba(255, 193, 7, 0.15); color: #d97706; } /* Ciemniejszy żółty dla kontrastu */
.bg-soft-danger  { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.bg-soft-info    { background-color