:root {
    --bg-body: #050505;
    --bg-card: rgba(20, 20, 20, 0.7);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-accent: #ffffff;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --danger-color: #ef4444;
    --radius-lg: 16px;
    --font-main: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 2rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    color: var(--text-accent);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

h3 {
    color: var(--text-secondary);
    font-weight: 500;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    margin: 0;
}

nav a {
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover, nav a.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

main {
    padding: 40px;
    flex: 1;
}

figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.2);
}

img, iframe, video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

figure:hover img {
    transform: scale(1.05);
}

figcaption {
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-subtle);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.02);
}

th {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-align: left;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

.progress-track {
    background: rgba(255,255,255,0.1);
    height: 6px;
    border-radius: 3px;
    margin-top: 8px;
    width: 100%;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}

fieldset {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.01);
    margin-bottom: 20px;
}

legend {
    color: var(--accent-color);
    font-weight: 600;
    padding: 0 10px;
}

.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-size: 0.9rem; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-main);
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: rgba(0,0,0,0.4);
}

.btn, input[type="submit"], input[type="reset"], button {
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    border: none;
}

.btn, input[type="submit"] {
    background: var(--accent-color);
    color: white;
}

.btn:hover, input[type="submit"]:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

input[type="reset"] {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

input[type="reset"]:hover {
    border-color: white;
    color: white;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: #666;
    background: rgba(0,0,0,0.3);
}

aside {
    padding: 20px 40px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    nav ul { gap: 10px; }
    nav a { padding: 6px 12px; font-size: 0.8rem; }
    .container { width: 100%; border-radius: 0; border: none; }
    main { padding: 20px; }
}