/* Notification Styles */
.notification-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item .text-truncate {
    line-height: 1.2;
}

.notification-item small {
    font-size: 0.75rem;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

#notif-badge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}

.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.notification-item .btn-link {
    color: #6c757d;
    text-decoration: none;
}

.notification-item .btn-link:hover {
    color: #495057;
}

/* Animation for new notifications */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#notif-badge.new-notification {
    animation: pulse 1s ease-in-out 3;
}

/* Loading spinner */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Document Detail Modal Styles */
#documentDetailModal .modal-dialog {
    max-width: 900px;
}

#documentDetailModal .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#documentDetailModal .card-header {
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

#documentDetailModal .table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

#documentDetailModal .table td:first-child {
    width: 40%;
    font-weight: 500;
}

#documentDetailModal .alert h5 {
    margin-bottom: 1rem;
}

#documentDetailModal .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

#documentDetailModal .modal-footer .btn {
    min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #documentDetailModal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    #documentDetailModal .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    #documentDetailModal .badge {
        margin-bottom: 0.25rem;
    }
}

/* Approval Status Colors */
.bg-light-success {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.bg-light-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.bg-light-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
}