/* Общие стили */
body { 
    margin: 0; 
    padding: 0; 
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%); 
    font-family: 'Courier New', monospace; 
    color: #00ff88; 
    overflow-x: hidden; 
}
.container { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    text-align: center; 
    padding: 20px; 
}
.logo h1 { 
    font-size: 3em; /* Уменьшил */
    margin: 0; 
    text-shadow: 0 0 20px #00ff88; 
    animation: glow 2s infinite alternate; 
}
.logo span { 
    color: #ff00ff; 
}
@keyframes glow { 
    from { text-shadow: 0 0 20px #00ff88; } 
    to { text-shadow: 0 0 40px #00ff88; } 
}
.beta-notice { 
    margin-top: 50px; 
    padding: 20px; /* Уменьшил */
    border: 1px solid #00ff88; 
    border-radius: 10px; 
    background: rgba(0,255,136,0.1); 
    animation: pulse 3s infinite; 
    max-width: 500px; 
}
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(0,255,136,0.7); } 
    70% { box-shadow: 0 0 0 10px transparent; } 
    100% { box-shadow: 0 0 0 0 transparent; } 
}
a { 
    color: #ff00ff; 
    text-decoration: none; 
} 
a:hover { 
    text-shadow: 0 0 10px #ff00ff; 
}
body::before { 
    content: ''; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: radial-gradient(2px 2px at 20px 30px, #00ff88, transparent), radial-gradient(2px 2px at 80px 80px, #ff00ff, transparent); 
    background-repeat: repeat; 
    background-size: 100px 100px; 
    animation: stars 20s linear infinite; 
    pointer-events: none; 
    z-index: -1; 
    opacity: 0.3; 
}
@keyframes stars { 
    from { transform: translateY(0); } 
    to { transform: translateY(-100px); } 
}

/* Админка */
.admin-panel { 
    max-width: 1200px; 
    width: 100%; 
    margin-top: 20px; 
    padding: 20px; /* Уменьшил */
    border: 2px solid #00ff88; 
    border-radius: 15px; 
    background: rgba(0,0,0,0.6); 
    box-shadow: 0 0 30px rgba(0,255,136,0.3); 
}
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; /* Уменьшил */
    margin-bottom: 20px; /* Уменьшил */
}
.stat-card { 
    padding: 15px; /* Уменьшил */
    background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(255,0,255,0.1)); 
    border: 1px solid #00ff88; 
    border-radius: 10px; 
    text-align: center; 
    font-size: 1em; /* Уменьшил */
}
.stat-card i { 
    margin-right: 10px; 
    color: #ff00ff; 
}
h2 { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #00ff88; 
    text-shadow: 0 0 10px #00ff88; 
    margin-bottom: 15px; /* Уменьшил */
}
.search-input { 
    margin-left: auto; 
    padding: 8px; /* Уменьшил */
    background: rgba(0,0,0,0.5); 
    border: 1px solid #00ff88; 
    color: #00ff88; 
    border-radius: 5px; 
    width: 150px; /* Уменьшил */
}
.upload-form { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    margin-bottom: 15px; /* Уменьшил */
    flex-wrap: wrap; 
}
.upload-form input[type="text"] { 
    padding: 8px; /* Уменьшил */
    background: rgba(0,0,0,0.5); 
    border: 1px solid #00ff88; 
    color: #00ff88; 
    border-radius: 5px; 
    width: 150px; /* Уменьшил */
}
.success-msg, .error-msg { 
    padding: 8px; /* Уменьшил */
    border-radius: 5px; 
    text-align: center; 
    margin: 10px 0; 
}

/* Кнопки (min-width 80px) */
.btn-primary, .btn-secondary, .btn-danger, .btn-copy { 
    padding: 10px 15px !important; /* Уменьшил */
    border: none !important; 
    border-radius: 8px !important; /* Уменьшил */
    cursor: pointer !important; 
    font-family: 'Courier New', monospace !important; 
    font-weight: bold !important; 
    transition: all 0.3s ease !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 6px !important; /* Уменьшил */
    text-decoration: none !important;
    min-width: 80px !important; /* Уменьшил */
    position: relative !important;
    overflow: hidden !important;
    margin: 2px;
}
.btn-primary { 
    background: linear-gradient(45deg, #00ff88, #00cc6a) !important; 
    color: #000 !important; 
    box-shadow: 0 0 15px #00ff88 !important; 
}
.btn-primary:hover { 
    transform: translateY(-2px) scale(1.03) !important; /* Уменьшил */
    box-shadow: 0 5px 20px #00ff88 !important; 
}
.btn-secondary { 
    background: linear-gradient(45deg, #ff00ff, #cc00cc) !important; 
    color: #000 !important; 
    box-shadow: 0 0 15px #ff00ff !important; 
}
.btn-secondary:hover { 
    transform: translateY(-2px) scale(1.03) !important; 
    box-shadow: 0 5px 20px #ff00ff !important; 
}
.btn-danger { 
    background: linear-gradient(45deg, #ff4444, #cc0000) !important; 
    color: #fff !important; 
    box-shadow: 0 0 15px #ff4444 !important; 
}
.btn-danger:hover { 
    transform: translateY(-2px) scale(1.03) !important; 
    box-shadow: 0 5px 20px #ff4444 !important; 
}
.btn-copy { 
    background: rgba(0,255,136,0.2) !important; 
    color: #00ff88 !important; 
    border: 2px solid #00ff88 !important; 
    padding: 6px 10px !important; /* Уменьшил */
    font-size: 0.8em !important; 
}
.btn-copy:hover { 
    background: #00ff88 !important; 
    color: #000 !important; 
    box-shadow: 0 0 20px #00ff88 !important;
}

/* Таблица (padding 10px) */
.table-wrapper { 
    overflow-x: auto; 
}
#files-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: rgba(0,0,0,0.4); 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 0 15px rgba(0,255,136,0.2); 
}
#files-table th { 
    background: linear-gradient(45deg, #00ff88, #00cc6a); 
    color: #000; 
    padding: 10px; /* Уменьшил */
    text-align: left; 
}
#files-table td { 
    padding: 10px; /* Уменьшил */
    border-bottom: 1px solid rgba(0,255,136,0.3); 
}
#files-table tr:nth-child(even) { 
    background: rgba(255,0,255,0.05); 
}
#files-table tr:hover { 
    background: rgba(0,255,136,0.1); 
}
.link-preview { 
    color: #ff00ff !important; 
    text-decoration: none !important; 
    padding: 4px 8px !important; /* Уменьшил */
    background: rgba(255,0,255,0.1) !important; 
    border-radius: 5px !important; 
}
.link-preview:hover { 
    background: rgba(255,0,255,0.3) !important; 
}
.panel-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 20px; /* Уменьшил */
    padding-top: 15px; /* Уменьшил */
    border-top: 1px solid #00ff88; 
}

/* Модалы */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
}
.modal-content { 
    background: #1a1a2e; 
    margin: 10% auto; /* Уменьшил */
    padding: 15px; /* Уменьшил */
    border: 2px solid #00ff88; 
    border-radius: 10px; 
    width: 80%; 
    max-width: 400px; /* Уменьшил */
    text-align: left; 
    box-shadow: 0 0 30px #00ff88; 
}
.modal-content h3 { 
    margin-top: 0; 
    color: #00ff88; 
}
.modal-content label { 
    display: block; 
    margin: 8px 0 3px; /* Уменьшил */
    color: #00ff88; 
}
.modal-content input { 
    width: 100%; 
    padding: 8px; /* Уменьшил */
    background: rgba(0,0,0,0.5); 
    border: 1px solid #00ff88; 
    color: #00ff88; 
    border-radius: 5px; 
    margin-bottom: 8px; /* Уменьшил */
}
.close { 
    color: #ff00ff; 
    float: right; 
    font-size: 24px; /* Уменьшил */
    font-weight: bold; 
    cursor: pointer; 
}
.close:hover { 
    color: #00ff88; 
}
.modal form { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; /* Уменьшил */
}

/* Мобилька */
@media (max-width: 768px) { 
    .logo h1 { font-size: 2em; } 
    .stats-grid { grid-template-columns: 1fr; } 
    .upload-form { flex-direction: column; } 
    .panel-footer { flex-direction: column; gap: 8px; } 
    .search-input { width: 100%; margin: 8px 0; } 
    #files-table td button { display: block; margin: 4px 0; } 
}