html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Wyróżniony element menu */
.nav-link.highlighted {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.nav-link.highlighted:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.nav-link.highlighted i {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(#0000 10%,#474bff);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 9px),#000 0);
    animation: spinner-zp9dbg 1s infinite linear;
}

@keyframes spinner-zp9dbg {
    to {
        transform: rotate(1turn);
    }
}

/* Styles for grouped offers */
.offer-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.offer-template-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.offer-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

.accordion-button {
    border-radius: 0.5rem !important;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f3ff !important;
    border-color: #0d6efd !important;
}

.border-start.border-4.border-info {
    border-left: 4px solid #0dcaf0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .offer-card,
    .offer-template-card {
        margin-bottom: 1rem;
    }
}

/* Announcement notification styles */
.announcement-bell {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.notification-badge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s infinite;
}

/* Animation for shaking bell when there are unread announcements */
@keyframes shake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.animate-shake {
    animation: shake 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* Pulse animation for notification badge */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Glow effect for the bell when hovered */
.announcement-bell:hover {
    color: #ffc107 !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
    transform: scale(1.1);
}

/* Enhanced dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Custom notification indicator */
.notification-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-indicator 1.5s infinite;
}

@keyframes pulse-indicator {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Agent Status Styling for VoIP Dashboard */
.agent-talking {
    background: linear-gradient(135deg, #28a745, #34ce57) !important;
    border-color: #28a745 !important;
    color: white !important;
}

.agent-calling {
    background: linear-gradient(135deg, #ffc107, #ffca2c) !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.agent-incoming {
    background: linear-gradient(135deg, #007bff, #0d6efd) !important;
    border-color: #007bff !important;
    color: white !important;
    animation: pulse-incoming 2s infinite;
}

.agent-busy {
    background: linear-gradient(135deg, #dc3545, #e55353) !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Animation for incoming calls */
@keyframes pulse-incoming {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Status badge improvements */
.status-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Call duration counter styling */
.call-duration {
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #28a745;
    animation: blink-duration 1s infinite;
}

@keyframes blink-duration {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.7;
    }
}

/* Status details improvements */
.status-details {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.agent-card .status-details small {
    color: inherit;
    opacity: 0.9;
}

/* Style dla nowego układu menu użytkownika */
.dropdown-header {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem 0.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlighted-menu-item {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 0.375rem;
    margin: 0.25rem 0.5rem;
}

.highlighted-menu-item:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.highlighted-menu-item .badge {
    font-size: 0.65rem;
    animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Wyróżniony element menu */
.nav-link.highlighted {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.nav-link.highlighted:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.nav-link.highlighted i {
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Style dla kompaktowego menu użytkownika */
.dropdown-menu-compact {
    min-width: 380px;
    max-width: 450px;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07) !important;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.menu-column {
    padding: 0 0.75rem;
}

.menu-column-header {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.75rem 0 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.menu-column-header i {
    font-size: 1rem;
}

.compact-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
}

.compact-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(4px);
    border-color: #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.compact-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.compact-item:hover i {
    transform: scale(1.1);
}

.compact-item span {
    flex: 1;
    color: #495057;
    font-weight: 500;
}

.compact-item:hover span {
    color: #212529;
}

/* Kolory dla ikon */
.text-purple { color: #6f42c1 !important; }
.text-orange { color: #fd7e14 !important; }
.text-teal { color: #20c997 !important; }

/* Separator między kolumnami */
.border-end.border-light {
    border-color: #e9ecef !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .dropdown-menu-compact {
        min-width: 320px;
        max-width: 350px;
        padding: 0.75rem;
    }
    
    .menu-column {
        padding: 0 0.5rem;
    }
    
    .menu-column-header {
        font-size: 0.75rem;
        padding: 0.5rem 0 0.4rem 0;
    }
    
    .compact-item {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .compact-item:hover {
        transform: translateX(2px);
    }
}

@media (max-width: 576px) {
    .dropdown-menu-compact {
        min-width: 280px;
        padding: 0.5rem;
    }
    
    .border-end.border-light {
        border-right: none !important;
        border-bottom: 1px solid #e9ecef !important;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .row.g-0 .col-6:first-child {
        border-right: none;
    }
    
    .row.g-0 .col-6:last-child {
        margin-top: 0.5rem;
    }
}

/* Animacje dropdown */
.dropdown-menu-compact {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect dla głównego przycisku menu */
#userMenuDropdown:hover {
    color: #007bff !important;
    transition: color 0.3s ease;
}

#userMenuDropdown i {
    transition: transform 0.3s ease;
}

#userMenuDropdown:hover i {
    transform: rotate(180deg);
}

/* Badge dla powiadomień (przyszłe użycie) */
.menu-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Focus states dla dostępności */
.compact-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.nav-link.highlighted:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Styl dla menu togglera na mobilnych */
@media (max-width: 991px) {
    .dropdown-menu-compact {
        position: static !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 0.375rem;
        margin-top: 0.5rem;
        background: white;
    }
}


