:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --danger-color: #e63946;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --transition: all 0.3s ease;
}

.logout-page, .access-denied-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.logout-container, .access-denied-container {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.logout-card, .access-denied-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    transition: var(--transition);
    background: white;
}

.logout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-bottom: none;
}

.card-header h3 {
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-icon, .warning-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 2rem;
}

.warning-icon {
    background: linear-gradient(135deg, var(--warning-color), #dc2f02);
    margin: 0 auto 20px;
}

.user-details h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-details p {
    color: #6c757d;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
    text-align: center;
}

.card-body p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #495057;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.btn-cancel {
    background-color: #e9ecef;
    color: #495057;
}

.btn-cancel:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.btn-logout {
    background: linear-gradient(to right, var(--danger-color), #d90429);
    color: white;
}

.btn-logout:hover {
    background: linear-gradient(to right, #d90429, #c1121f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.app-logo i {
    font-size: 1.5rem;
}

/* Access Denied Styles */
.access-denied-card {
    padding: 2rem;
    text-align: center;
}

.access-denied-card h2 {
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.access-denied-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #495057;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 576px) {
    .logout-container, .access-denied-container {
        padding: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-icon, .warning-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}