/* Modern Clean Style for MDAdmin */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
    position: relative;
}

header {
    background: #fff;
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e1e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

nav ul li a:hover {
    background-color: #f0f0f0;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Alert/Flash Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Login Container Style */
.login-container {
    position: relative;
    max-width: 450px;
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.terminal-heading {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #333;
}

.google-signin-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.google-signin-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Form Elements */
.terminal-input {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-family: inherit;
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1.2rem;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.terminal-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.terminal-input::placeholder {
    color: #999;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    background: #4a90e2;
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #3a7bc8;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    width: 100%;
}

/* Google Sign-in styles */
.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 500;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background: #f5f5f5;
}

.btn-google:active {
    background: #eee;
}

.btn-google .hacker-icon {
    margin-right: 10px;
}

.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
    position: relative;
}

.traditional-login-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.login-help {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

/* Admin panel styles */
.auth-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: #f5f5f7;
    color: #666;
    font-size: 0.8rem;
}

h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.admin-card ul {
    list-style: none;
}

.admin-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f7;
}

.admin-card ul li:last-child {
    border-bottom: none;
}

.admin-card a {
    color: #4a90e2;
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0;
}

.admin-card a:hover {
    text-decoration: underline;
}

.status-ok {
    color: #28a745;
    font-weight: 500;
    display: inline-block;
}

.status-ok::before {
    content: "✓ ";
}

.status-error {
    color: #dc3545;
    font-weight: 500;
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.activity-log li {
    padding: 0.25rem 0;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    margin-top: 3rem;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

/* Chart styling */
.full-width {
    grid-column: 1 / -1;
}

.chart-section {
    margin-top: 2rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chart-heading {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.chart-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    height: 600px !important;
    width: 100%;
    position: relative;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 1rem;
}

/* Code block styling */
.code-block {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    background: #f8f8f8;
    color: #333;
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    position: relative;
    margin: 1.5rem 0;
    overflow-x: auto;
    white-space: pre;
}

.code-block code {
    display: block;
}

/* Terminal text style */
.terminal-text {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    color: #333;
    background: #f8f8f8;
    padding: 1rem;
    border-left: 3px solid #4a90e2;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

/* Table styling */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.matrix-table th,
.matrix-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e1e1e1;
}

.matrix-table th {
    background: #f5f5f7;
    font-weight: 600;
}

.matrix-table tr:hover {
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.25rem 0;
        width: 100%;
        text-align: center;
    }

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

    main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .chart-container {
        height: 400px !important;
    }
}

@keyframes scan {
    0% {
        background-position: 0 -100vh;
    }

    35%,
    100% {
        background-position: 0 100vh;
    }
}

@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: skew(0.15deg);
    }

    20% {
        clip-path: inset(75% 0 23% 0);
        transform: skew(0.15deg);
    }

    40% {
        clip-path: inset(9% 0 61% 0);
        transform: skew(-0.15deg);
    }

    60% {
        clip-path: inset(33% 0 15% 0);
        transform: skew(0.15deg);
    }

    80% {
        clip-path: inset(39% 0 15% 0);
        transform: skew(-0.15deg);
    }

    100% {
        clip-path: inset(71% 0 21% 0);
        transform: skew(0.15deg);
    }
}

/* Additional Matrix animations */
@keyframes terminalBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes terminalGlow {

    0%,
    100% {
        text-shadow: 0 0 5px #33ff33, 0 0 10px rgba(51, 255, 51, 0.5);
        box-shadow: 0 0 5px #33ff33, 0 0 10px rgba(51, 255, 51, 0.3);
    }

    50% {
        text-shadow: 0 0 10px #33ff33, 0 0 20px rgba(51, 255, 51, 0.7);
        box-shadow: 0 0 10px #33ff33, 0 0 20px rgba(51, 255, 51, 0.5);
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes terminalLoading {
    0% {
        content: "[    ]";
    }

    25% {
        content: "[=   ]";
    }

    50% {
        content: "[==  ]";
    }

    75% {
        content: "[=== ]";
    }

    100% {
        content: "[====]";
    }
}

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

body {
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    color: #33ff33;
    /* Matrix green */
    background-color: #000;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    /* Changed from fixed to absolute to fix mobile scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 40%, rgba(0, 15, 0, 0.9) 100%);
    background-size: 100% 2px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.2;
    /* Animation removed - was causing horizontal scroll issues */
    /* animation: scan 7.5s linear 0s infinite; */
}

body::after {
    content: "";
    position: absolute;
    /* Changed from fixed to absolute to fix mobile scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='0' y='15' font-family='monospace' font-size='20px' fill='%2300FF00' opacity='0.06'%3E01010101%3C/text%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.08;
    z-index: -1;
}

header {
    background: rgba(0, 20, 0, 0.8);
    color: #33ff33;
    padding: 1rem 0;
    border-bottom: 1px solid #33ff33;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px #33ff33, 0 0 20px rgba(51, 255, 51, 0.2);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(51, 255, 51, 0.1) 50%, transparent 100%);
    animation: glitch 5s infinite;
    z-index: -1;
}

header h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: #33ff33;
    text-shadow: 0 0 5px #33ff33, 0 0 10px rgba(51, 255, 51, 0.5);
    animation: flicker 3s infinite;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 0.5rem;
}

nav ul li a {
    color: #33ff33;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #33ff33;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 255, 51, 0.2), transparent);
    transition: 0.5s;
}

nav ul li a:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 5px #33ff33, 0 0 10px rgba(51, 255, 51, 0.5);
    border-color: #33ff33;
    color: #fff;
    text-shadow: 0 0 5px #33ff33;
}

nav ul li a:hover::before {
    left: 100%;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, rgba(51, 255, 51, 0.1) 0px, rgba(51, 255, 51, 0.1) 1px, transparent 1px, transparent 2px);
    pointer-events: none;
    z-index: -1;
}

/* Alert/Flash Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

.alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.alert::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, currentColor, transparent);
    opacity: 0.5;
}

.alert-success {
    color: #33ff33;
    border-color: rgba(51, 255, 51, 0.3);
}

.alert-success::before {
    background-color: #33ff33;
    box-shadow: 0 0 10px #33ff33;
}

.alert-error {
    color: #ff3333;
    border-color: rgba(255, 51, 51, 0.3);
}

.alert-error::before {
    background-color: #ff3333;
    box-shadow: 0 0 10px #ff3333;
}

.alert-warning {
    color: #ffff33;
    border-color: rgba(255, 255, 51, 0.3);
}

.alert-warning::before {
    background-color: #ffff33;
    box-shadow: 0 0 10px #ffff33;
}

.alert-info {
    color: #33ffff;
    border-color: rgba(51, 255, 255, 0.3);
}

.alert-info::before {
    background-color: #33ffff;
    box-shadow: 0 0 10px #33ffff;
}

/* Login Container Terminal Style */
.login-container {
    position: relative;
    max-width: 450px;
    margin: 3rem auto;
    background: rgba(0, 10, 0, 0.8);
    padding: 2rem;
    border: 1px solid #33ff33;
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.3);
    font-family: 'Share Tech Mono', monospace;
}

.login-container::before {
    content: "MDAdmin v" attr(data-version) " // Authentication Terminal";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 10px;
    background: rgba(0, 20, 0, 0.9);
    border-bottom: 1px solid #33ff33;
    color: #33ff33;
    font-size: 0.8rem;
}

.login-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #33ff33, transparent);
}

.login-container .terminal-heading {
    margin-top: 20px;
    padding-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #33ff33;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
}

.google-signin-section {
    margin-top: 2rem;
}

.google-signin-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(51, 255, 51, 0.7);
}

/* Enhanced Form Elements */
.terminal-input {
    background: rgba(0, 15, 0, 0.7);
    border: 1px solid #33ff33;
    color: #33ff33;
    font-family: 'Share Tech Mono', monospace;
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.terminal-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
}

.terminal-input::placeholder {
    color: rgba(51, 255, 51, 0.6);
}

.terminal-input::before {
    content: "> ";
    color: #33ff33;
    position: absolute;
    left: 0.5rem;
}

/* Terminal-style cursor */
.cursor {
    color: #33ff33;
    font-weight: bold;
    animation: terminalBlink 1s infinite;
    margin-left: 0.2rem;
}

/* Typewriter effect for important text */
.typed::after {
    content: "▋";
    display: inline-block;
    color: #33ff33;
    animation: terminalBlink 1s infinite;
    margin-left: 0.2rem;
}

/* Terminal text style */
.terminal-text {
    font-family: 'Share Tech Mono', monospace;
    color: #33ff33;
    background: rgba(0, 10, 0, 0.5);
    padding: 1rem;
    border-left: 3px solid #33ff33;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.terminal-text::before {
    content: "> ";
    color: rgba(51, 255, 51, 0.7);
}

/* Cool code block styling */
.code-block {
    font-family: 'Share Tech Mono', monospace;
    background: rgba(0, 0, 0, 0.7);
    color: #33ff33;
    padding: 1rem;
    border: 1px solid #33ff33;
    position: relative;
    margin: 1.5rem 0;
    overflow-x: auto;
    white-space: pre;
}

.code-block::before {
    content: "#!/usr/bin/mdadmin";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.3rem 1rem;
    background: rgba(51, 255, 51, 0.1);
    color: #33ff33;
    font-size: 0.8rem;
    border-bottom: 1px solid #33ff33;
}

.code-block code {
    display: block;
    padding-top: 1.5rem;
}

/* Admin panel enhancements */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-card {
    background: rgba(0, 10, 0, 0.6);
    border: 1px solid #33ff33;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    background: rgba(0, 20, 0, 0.7);
    border-color: #33ff33;
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.6);
}

.admin-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanline 3s infinite;
}

.admin-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent #33ff33 transparent transparent;
    opacity: 0.7;
}

.admin-card h3 {
    color: #33ff33;
    margin-bottom: 1rem;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.3);
}

.admin-card h3::before {
    content: ">";
    margin-right: 5px;
    color: rgba(51, 255, 51, 0.7);
}

.admin-card ul {
    list-style: none;
}

.admin-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.1);
    font-family: 'Share Tech Mono', monospace;
}

.admin-card ul li::before {
    content: "> ";
    color: rgba(51, 255, 51, 0.7);
}

/* Loading indicator */
.loading::after {
    content: "[    ]";
    display: inline-block;
    margin-left: 0.5rem;
    font-family: 'Share Tech Mono', monospace;
    animation: terminalLoading 1s infinite steps(1);
}

/* Matrix-style table */
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-family: 'Share Tech Mono', monospace;
}

.matrix-table th,
.matrix-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid rgba(51, 255, 51, 0.3);
}

.matrix-table th {
    background: rgba(0, 15, 0, 0.7);
    color: #33ff33;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.matrix-table tr {
    background: rgba(0, 5, 0, 0.3);
}

.matrix-table tr:hover {
    background: rgba(51, 255, 51, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid #33ff33;
    background: rgba(0, 0, 0, 0.7);
    color: #33ff33;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 255, 51, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 5px #33ff33, 0 0 10px rgba(51, 255, 51, 0.5);
    text-shadow: 0 0 5px #33ff33;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(0, 20, 0, 0.7);
    color: #33ff33;
    border-color: #33ff33;
    width: 100%;
}

/* Google Sign-in styles */
.google-signin-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-google {
    background: rgba(0, 0, 0, 0.8);
    color: #33ff33;
    border: 1px solid #33ff33;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
}

.btn-google:hover {
    background: rgba(51, 255, 51, 0.1);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
    text-shadow: 0 0 5px #33ff33;
}

.btn-google:active {
    transform: translateY(2px);
}

.btn-google.loading {
    animation: terminalGlow 1.5s infinite;
}

.btn-google .hacker-icon {
    margin-right: 10px;
    font-weight: bold;
    animation: terminalBlink 1s infinite;
}

.btn-google::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #33ff33;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-google:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.google-signin-note {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.7;
}

/* Terminal container styling */
.terminal-container {
    position: relative;
    padding: 2rem;
    border: 1px solid #33ff33;
    background: rgba(0, 10, 0, 0.8);
    color: #33ff33;
    font-family: 'Share Tech Mono', monospace;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.2);
}

.terminal-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: rgba(51, 255, 51, 0.1);
    border-bottom: 1px solid #33ff33;
}

.terminal-container::after {
    content: "● ◯ ◯";
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 12px;
    color: #33ff33;
}

.terminal-heading {
    margin-top: 15px;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.3);
    font-family: 'VT323', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Glitch text effect */
.glitch-text {
    position: relative;
    color: #33ff33;
    text-shadow: 0 0 5px #33ff33;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #ff00ff;
    z-index: -1;
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    animation: glitch 0.3s infinite;
}

.glitch-text::after {
    color: #00ffff;
    z-index: -2;
    left: -2px;
    text-shadow: 1px 0 #ff00ff;
    animation: glitch 0.3s infinite reverse;
}

.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.login-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.traditional-login-section h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.login-help {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

/* Admin panel styles */
/* Admin dashboard styles */
.auth-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0.5rem;
    border-top: 1px solid rgba(51, 255, 51, 0.2);
    border-bottom: 1px solid rgba(51, 255, 51, 0.2);
    background: rgba(0, 20, 0, 0.3);
    font-family: 'Share Tech Mono', monospace;
    color: rgba(51, 255, 51, 0.7);
    font-size: 0.8rem;
}

h2 {
    color: #33ff33;
    font-family: 'VT323', monospace;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #33ff33;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2::before {
    content: "> ";
    font-size: 1.5rem;
    opacity: 0.8;
}

h2::after {
    content: "_";
    animation: flicker 1s infinite;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-card {
    background: rgba(0, 10, 0, 0.6);
    border: 1px solid #33ff33;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    background: rgba(0, 20, 0, 0.7);
    border-color: #33ff33;
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.6);
}

.admin-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanline 3s infinite;
}

.admin-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent #33ff33 transparent transparent;
    opacity: 0.7;
}

.admin-card h3 {
    color: #33ff33;
    margin-bottom: 1rem;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.3);
}

.admin-card h3::before {
    content: ">";
    margin-right: 5px;
    color: rgba(51, 255, 51, 0.7);
}

.admin-card ul {
    list-style: none;
}

.admin-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.1);
    font-family: 'Share Tech Mono', monospace;
}

.admin-card ul li::before {
    content: "> ";
    color: rgba(51, 255, 51, 0.7);
}

.admin-card ul li:last-child {
    border-bottom: none;
}

.admin-card a {
    color: #33ff33;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
}

.admin-card a:hover {
    color: #fff;
    text-shadow: 0 0 5px #33ff33;
}

.admin-card a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #33ff33;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px #33ff33;
}

.admin-card a:hover::after {
    width: 100%;
}

.status-ok {
    color: #33ff33;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.status-ok::before {
    content: "✓ ";
}

.status-error {
    color: #f44336;
    font-weight: 500;
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.activity-log li {
    padding: 0.25rem 0;
    font-family: 'Courier New', monospace;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    margin-top: 3rem;
}

/* Chart styling */
.full-width {
    grid-column: 1 / -1;
}

/* Chart section - separate from admin grid */
.chart-section {
    margin-top: 2rem;
    border: 1px solid #33ff33;
    background: rgba(0, 10, 0, 0.6);
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.chart-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #33ff33, transparent);
    animation: scanline 3s infinite;
}

.chart-heading {
    color: #33ff33;
    margin-bottom: 1rem;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(51, 255, 51, 0.3);
}

.chart-heading::before {
    content: ">";
    margin-right: 5px;
    color: rgba(51, 255, 51, 0.7);
}

.chart-container {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
    height: 600px !important;
    /* Increased height for better visibility */
    width: 100%;
    position: relative;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #33ff33;
    margin-top: 1rem;
}

/* Disable all animations for better mobile experience */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* Responsive design */
@media (max-width: 768px) {

    /* Apply no-animations class to body for mobile devices */
    body {
        overflow-x: hidden !important;
    }

    /* Disable all animations on mobile for better performance and scrolling */
    * {
        animation: none !important;
        transition: none !important;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.25rem 0;
    }

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

    main {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
}