/* Logout Page Professional Styling */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0D1B3E;
    --primary-dark: #08122A;
    --primary-light: #243B73;
    --secondary: #C9972C;
    --success: #1A7A3C;
    --warning: #E2B84A;
    --danger: #B91C1C;
    --info: #1B2D5B;
    --dark: #0D1B3E;
    --dark-light: #1B2D5B;
    --gray: #5C6B8A;
    --gray-light: #F7F5EF;
    --gray-lighter: #F7F5EF;
    --white: #ffffff;
    --border: #DDD5B0;
    --shadow-sm: 0 1px 2px 0 rgba(13, 27, 62, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(13, 27, 62, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(13, 27, 62, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(13, 27, 62, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0D1B3E 0%, #1B2D5B 60%, #243B73 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Shapes */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

body::before {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

body::after {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Logout Container */
.logout-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

/* Logout Card */
.logout-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 50px 40px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logout Icon */
.logout-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--danger), #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
    }
}

/* Logout Content */
.logout-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.logout-card > p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Logout Info */
.logout-info {
    background: var(--gray-lighter);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
    flex-shrink: 0;
}

/* Logout Actions */
.logout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-cancel,
.btn-logout {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: none;
}

.btn-cancel {
    background: var(--gray-light);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-cancel:hover {
    background: var(--gray);
    color: var(--white);
    border-color: var(--gray);
    transform: translateY(-2px);
}

.btn-logout {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-logout:active {
    transform: translateY(-1px);
}

/* Logout Footer */
.logout-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.logout-footer p {
    font-size: 14px;
    color: var(--gray);
}

.logout-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.logout-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Notification Styles */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    width: 90%;
}

.notification {
    padding: 16px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.notification.error {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .logout-card {
        padding: 40px 30px;
    }
    
    .logout-icon {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }
    
    .logout-card h1 {
        font-size: 24px;
    }
    
    .logout-card > p {
        font-size: 15px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .logout-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .logout-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .logout-card h1 {
        font-size: 22px;
    }
    
    .logout-card > p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .logout-info {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 25px;
    }
    
    .info-item {
        font-size: 13px;
        padding: 10px 0;
        gap: 12px;
    }
    
    .info-item i {
        font-size: 16px;
    }
    
    .logout-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .btn-cancel,
    .btn-logout {
        padding: 15px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .logout-footer {
        padding-top: 15px;
    }
    
    .logout-footer p {
        font-size: 13px;
    }
    
    #notificationContainer {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* Extra Small (360px and below) */
@media (max-width: 360px) {
    .logout-card {
        padding: 25px 15px;
    }
    
    .logout-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .logout-card h1 {
        font-size: 20px;
    }
    
    .btn-cancel,
    .btn-logout {
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .logout-card {
        padding: 30px 35px;
    }
    
    .logout-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .logout-info {
        padding: 15px;
        margin-bottom: 20px;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.logout-container,
.logout-card {
    max-width: 100%;
    overflow-x: hidden;
}

/* Focus visible for accessibility */
.btn-cancel:focus-visible,
.btn-logout:focus-visible,
.logout-footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}