/* Custom Modal Styles */

.custom-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal-container {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-modal-overlay.show .custom-modal-container {
    transform: scale(1);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
}

.custom-modal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.custom-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.custom-modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.custom-modal-body {
    padding: 2rem 1.5rem;
}

.custom-modal-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

.custom-modal-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.btn-modal {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-modal i {
    font-size: 0.9rem;
}

.btn-modal.btn-primary {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-modal.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.btn-modal.btn-secondary {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-modal.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-modal.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-modal.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Responsive */
@media (max-width: 576px) {
    .custom-modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .custom-modal-header {
        padding: 1.2rem;
    }
    
    .custom-modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .custom-modal-title {
        font-size: 1.1rem;
    }
    
    .custom-modal-body {
        padding: 1.5rem 1.2rem;
    }
    
    .custom-modal-footer {
        padding: 1.2rem;
        flex-direction: column;
    }
    
    .btn-modal {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced User Avatar Styles */
.nav-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 3px solid #2ecc71;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.nav-avatar:hover {
    transform: scale(1.1);
    border-color: #27ae60;
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.5);
}

#userProfile {
    position: relative;
    display: inline-block;
}

#userProfile::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
