html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

a, .btn-link {
    color: #58a6ff;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

h1, h2, h3, h4, h5, h6 {
    color: #e6edf3;
}

h1:focus {
    outline: none;
}

fluent-text-field, fluent-number-field, fluent-select, fluent-date-picker, fluent-time-picker, fluent-text-area {
    --neutral-fill-input-rest: #0d1117;
    --neutral-stroke-input-rest: #30363d;
    --neutral-fill-input-hover: #161b22;
    --neutral-stroke-input-hover: #58a6ff;
    --neutral-foreground-rest: #e6edf3;
    color: white;
}

.cyber-card {
    background-color: rgba(22, 27, 34, 0.95) !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(88, 166, 255, 0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(10px);
}

.cyber-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 166, 255, 0.15) !important;
    border-color: #58a6ff !important;
}

.cyber-button-primary {
    background: linear-gradient(135deg, #1f6feb 0%, #238636 100%);
    color: white !important;
    border: none !important;
    box-shadow: 0 0 15px rgba(31, 111, 235, 0.4);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.cyber-button-danger {
    color: #ff7b72 !important;
    border: 1px solid #ff7b72 !important;
    background: transparent;
}

.cyber-button-danger:hover {
    background: rgba(255, 123, 114, 0.1);
}

.gradient-text {
    background: linear-gradient(to right, #58a6ff, #a371f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.hero-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 30px !important;
    font-size: 1.2rem !important;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hero-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
}

.cyber-clock {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #58a6ff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.8);
    background: rgba(13, 17, 23, 0.8);
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    display: inline-block;
}

.date-text {
    font-size: 0.9rem;
    color: #8b949e;
    margin-right: 10px;
    font-family: 'Consolas', monospace;
}

@media (max-width: 640px) {
    .content {
        padding: 10px !important;
    }

    .cyber-card {
        padding: 15px !important;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .cyber-clock {
        font-size: 1.1rem;
        padding: 2px 10px;
    }

    input, select, textarea {
        font-size: 16px !important;
    }

    button, .fluent-button {
        min-height: 44px;
    }
    [data-theme="light"] body {
        color: #1f2328 !important; 
    }

    [data-theme="light"] h1,
    [data-theme="light"] h2,
    [data-theme="light"] h3,
    [data-theme="light"] h4,
    [data-theme="light"] h5,
    [data-theme="light"] h6 {
        color: #1f2328 !important;
    }

    [data-theme="light"] a,
    [data-theme="light"] .btn-link {
        color: #0969da;
    }
}

*::before,
*::after {
    pointer-events: none !important;
}
