/* Modern CSS with enhanced UI elements and animations */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #6d28d9;
    --accent-hover: #7c3aed;
    --background-start: #000000;
    --background-end: #1a1a1a;
    --card-background: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --gradient-1: #6d28d9;
    --gradient-2: #db2777;
    --gradient-3: #4f46e5;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glass-background: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-color: var(--primary-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.gradient-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gradient-1) 0%, transparent 70%);
    top: -30vw;
    right: -30vw;
    animation-delay: 0s;
}

.gradient-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gradient-2) 0%, transparent 70%);
    bottom: -30vw;
    left: -30vw;
    animation-delay: -5s;
}

.gradient-3 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--gradient-3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--glass-border);
}

.top-nav {
    margin-bottom: 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.system-time {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.admin-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.admin-icon {
    font-size: 1.2rem;
}

.header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.logo-wrapper {
    flex-shrink: 0;
    background: var(--glass-background);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
}

.logo {
    width: 180px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.title-wrapper {
    flex-grow: 1;
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
}

.welcome-message {
    background: var(--glass-background);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
}

.welcome-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.message-content p {
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card-button {
    background: var(--glass-background);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card-button:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.card-button:hover::before {
    opacity: 0.1;
}

.icon-wrapper {
    margin-bottom: 1rem;
}

.icon {
    font-size: 2rem;
    height: 56px;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-background);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.button-content {
    position: relative;
    z-index: 1;
}

.button-title {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.button-description {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.8s ease-out;
}

.card-button {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: both;
}

.card-button:nth-child(1) {
    animation-delay: 0.1s;
}

.card-button:nth-child(2) {
    animation-delay: 0.2s;
}

.card-button:nth-child(3) {
    animation-delay: 0.3s;
}

.card-button:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .button-grid {
        grid-template-columns: 1fr;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-button {
        width: 100%;
        justify-content: center;
    }
}