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

:root {
    --bg-main: #07080d;
    --bg-card: rgba(15, 17, 28, 0.75);
    --bg-card-hover: rgba(22, 25, 41, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #8b5cf6;
    --color-primary-glow: rgba(139, 92, 246, 0.4);
    --color-secondary: #c084fc;
    
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.2);
    --color-error: #f43f5e;
    --color-error-glow: rgba(244, 63, 94, 0.2);
    --color-warning: #fbbf24;
    --color-warning-glow: rgba(251, 191, 36, 0.2);
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(192, 132, 252, 0.05) 0%, transparent 40%);
}

/* Glassmorphic Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(15, 17, 28, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--color-primary);
}

.online-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

/* Card Styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.1);
}

/* Hero Section */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Glowing Button */
.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px var(--color-primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.btn-glow:active {
    transform: translateY(1px);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glow:hover::after {
    opacity: 1;
    left: 120%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Task Workspace */
.task-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .task-grid {
        grid-template-columns: 1fr;
    }
}

.task-info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timer-box {
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.timer-label {
    font-size: 0.85rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.timer-digits {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

/* File Actions */
.file-download-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.2rem;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Drag and Drop Zone */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.03);
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.dropzone:hover .dropzone-icon {
    color: var(--color-primary);
    transform: translateY(-5px);
}

.dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* Progress bar */
.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    height: 6px;
    margin-top: 1rem;
    overflow: hidden;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width 0.1s ease;
}

/* Alerts and Banners */
.banner {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.banner-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.banner-success i {
    color: var(--color-success);
}

.banner-error {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #fecdd3;
}

.banner-error i {
    color: var(--color-error);
}

.banner-warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.banner-warning i {
    color: var(--color-warning);
}

/* Telegram login card */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.auth-icon {
    font-size: 3rem;
    color: #229ed9; /* Telegram official color style */
    margin-bottom: 1.5rem;
}

.qr-placeholder-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.qr-placeholder-wrapper img {
    display: block;
    max-width: 200px;
    height: 200px;
}

/* Admin Dashboard layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.8;
}

/* Dashboard Sections */
.dashboard-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.dashboard-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-error {
    background: rgba(244, 63, 94, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-warning);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* File upload form for admin */
.admin-upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-control[type="file"] {
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition-smooth);
    margin-right: 0.75rem;
}

.form-control[type="file"]::file-selector-button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

/* Visitor log */
.visitor-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.visitor-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visitor-ip {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.visitor-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Keyframes */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Footer style */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: rgba(7, 8, 13, 0.8);
    backdrop-filter: blur(5px);
}
footer a {
    color: var(--text-secondary);
    text-decoration: none;
}
footer a:hover {
    color: var(--color-primary);
}

[v-cloak] {
    display: none !important;
}

/* Mobile Adaptation (max-width: 600px) */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    
    .container {
        padding: 1.25rem 0.75rem;
    }
    
    .glass-card {
        padding: 1.75rem 1.25rem;
    }
    
    .hero-wrapper {
        padding: 2rem 0.5rem;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    
    .btn-glow, .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    
    .file-download-box {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .file-name {
        max-width: 100%;
    }
    
    .dropzone {
        padding: 2rem 1rem;
    }
    
    .dropzone-icon {
        font-size: 2rem;
    }
    
    .timer-digits {
        font-size: 1.85rem;
    }
    
    .timer-box {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    /* ------------------------------------------------------------- */
    /* ADMIN DASHBOARD MOBILE ADAPTATIONS */
    /* ------------------------------------------------------------- */
    
    /* Admin dashboard header stacking */
    #app-admin-dashboard > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        text-align: center;
    }
    
    #app-admin-dashboard > div[style*="display: flex"] a {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats cards layout on mobile */
    .admin-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        padding: 1.25rem !important;
    }
    
    .stat-number {
        font-size: 1.6rem !important;
    }
    
    .stat-icon {
        font-size: 1.75rem !important;
    }
    
    /* Main layout cards padding */
    .dashboard-card {
        padding: 1.25rem 1rem !important;
    }
    
    .dashboard-title {
        font-size: 1.1rem !important;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .dashboard-title .badge {
        align-self: flex-start;
    }
    
    /* Enable horizontal scrolling for tables to prevent squishing */
    .table-responsive table {
        min-width: 600px !important;
    }
    
    th, td {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Visitor list log scaling */
    .visitor-item {
        padding: 0.75rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .visitor-time {
        align-self: flex-end;
    }
    
    /* Admin upload file controls spacing */
    .admin-upload-form button {
        margin-top: 0.5rem;
    }
    
    /* ------------------------------------------------------------- */
    /* MODALS AND OTHER OVERLAYS */
    /* ------------------------------------------------------------- */
    
    /* Confirmation Modal overlay adjustments */
    .modal-overlay .glass-card {
        padding: 1.5rem !important;
        width: 95% !important;
    }
    
    .modal-overlay .glass-card div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem;
    }
}

