:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.7);
    --accent-color: #00f2ff; /* Cyan Neon */
    --accent-glow: 0 0 15px rgba(0, 242, 255, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --error-color: #ff0055;
    --success-color: #00ff88;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 85, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

/* Login Page */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--accent-color), #bc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--accent-glow);
    letter-spacing: 2px;
    font-weight: 800;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input[type="password"], input[type="text"], textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color), #0072ff);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
}

/* Dashboard */
.dashboard {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

/* File List */
.file-manager {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.uploader {
    padding: 30px;
    border: 2px dashed var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uploader:hover {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
}

.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.file-item {
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.file-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-icon {
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    text-decoration: none;
    text-align: center;
}

.btn-icon:hover {
    background: var(--accent-color);
    color: black;
}

.btn-delete:hover {
    background: var(--error-color);
    color: white;
}

/* JSON Editor Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#json-editor {
    height: 400px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* Animations */
.glow-text {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--accent-color); }
    to { text-shadow: 0 0 20px var(--accent-color), 0 0 30px #0072ff; }
}
