
:root {
    /* Color Variables */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eaefff;
    --secondary: #f8f9fa;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --border-color: #e1e5eb;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
    --spacing-xl: 2rem;
}

/* Base Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f8fe;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color var(--transition), color var(--transition);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f8fe 0%, #e9effd 100%);
    transition: background var(--transition);
}

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(67, 97, 238, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(67, 97, 238, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 90%, rgba(67, 97, 238, 0.03) 0%, transparent 20%);
    animation: patternFloat 15s ease-in-out infinite alternate;
    transition: background-image var(--transition);
}

@keyframes patternFloat {
    0% {
        transform: translateY(-1%) translateX(-1%);
    }
    100% {
        transform: translateY(1%) translateX(1%);
    }
}

/* Floating Objects */
.floating-objects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-object {
    position: absolute;
    opacity: 0.5;
    z-index: -1;
    transition: color var(--transition);
}

.object-1 {
    top: 15%;
    left: 10%;
    font-size: 4rem;
    color: var(--primary);
    animation: float 20s ease-in-out infinite;
}

.object-2 {
    top: 75%;
    left: 85%;
    font-size: 3rem;
    color: var(--success);
    animation: float 18s ease-in-out infinite 2s;
}

.object-3 {
    top: 25%;
    left: 90%;
    font-size: 3.5rem;
    color: var(--warning);
    animation: float 22s ease-in-out infinite 1s;
}

.object-4 {
    top: 80%;
    left: 15%;
    font-size: 3rem;
    color: var(--info);
    animation: float 25s ease-in-out infinite 3s;
}

.object-5 {
    top: 45%;
    left: 5%;
    font-size: 2.5rem;
    color: var(--danger);
    animation: float 19s ease-in-out infinite 2s;
}

.object-6 {
    top: 40%;
    left: 95%;
    font-size: 2.5rem;
    color: var(--primary);
    animation: float 21s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) translateX(15px) rotate(5deg);
    }
    50% {
        transform: translateY(10px) translateX(-20px) rotate(-3deg);
    }
    75% {
        transform: translateY(-15px) translateX(25px) rotate(2deg);
    }
}

/* Main Container */
.container {
    max-width: 600px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    z-index: 1;
    margin: 2rem 0;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo and Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    border-radius: 0.5rem;
    color: white;
    font-size: 2rem;
    margin-right: var(--spacing-xl);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    animation: pulse 2s infinite;
    transition: background-color var(--transition), box-shadow var(--transition);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(67, 97, 238, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: color var(--transition);
}

/* Error Content */
.error-card {
    width: 100%;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: fadeInUp 0.6s ease-in-out forwards;
    opacity: 0;
}

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

.error-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--danger), var(--warning));
}

.error-icon {
    font-size: 4rem;
    color: var(--danger);
    margin-bottom: 1.5rem;
    animation: shakeWarning 0.8s ease-in-out;
}

@keyframes shakeWarning {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-box {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.countdown {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--danger);
    margin: 1.5rem 0;
}

.countdown span {
    font-size: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background-color: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.btn-danger {
    background-color: var(--danger);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.support-link {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.support-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.support-link a:hover {
    text-decoration: underline;
}

/* IP Information Box */
.ip-box {
    background-color: var(--dark);
    color: var(--white);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: monospace;
    font-size: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-label {
    margin-right: 0.5rem;
    color: var(--text-light);
}

/* Dark Mode Overrides */
body.dark-mode {
    background-color: #121212;
}

body.dark-mode .animated-bg {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}

body.dark-mode .bg-pattern {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(108, 140, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(108, 140, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(108, 140, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 90%, rgba(108, 140, 255, 0.05) 0%, transparent 20%);
}

body.dark-mode .error-card {
    background-color: #1e1e1e;
}

body.dark-mode .error-message,
body.dark-mode .info-box p {
    color: #e1e1e1;
}

body.dark-mode .theme-toggle-btn {
    background-color: #2a2a2a;
    color: #e1e1e1;
}

body.dark-mode .info-box {
    background-color: rgba(231, 76, 60, 0.15);
}

body.dark-mode .ip-box {
    background-color: #000000;
}

body.dark-mode .support-link {
    color: #a0a5ab;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    .error-card {
        padding: 1.5rem;
    }

    .error-icon {
        font-size: 3rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .logo-wrapper {
        margin-bottom: 1.5rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .theme-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .floating-objects {
        display: none;
    }
}
