:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --neon-white: #ffffff;
    --neon-glow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    --neon-glow-strong: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    --border-color: #333333;
    --input-bg: #111111;
    --hover-bg: #1a1a1a;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Common Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header & Logo */
header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.admin-logo {
    max-width: 150px;
    margin-bottom: 0;
}

.text-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-white);
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

h1 {
    font-size: 2rem;
    color: var(--neon-white);
    margin-bottom: 10px;
    font-weight: 600;
}

p {
    color: #a0a0a0;
    font-size: 1rem;
}

/* Form Styles */
.form-container {
    width: 100%;
    background: #0a0a0a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input, select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

input::placeholder {
    color: #555555;
}

input:focus, select:focus {
    border-color: var(--neon-white);
    box-shadow: var(--neon-glow);
    background-color: #000000;
}

/* Button */
.submit-btn {
    width: 100%;
    background-color: transparent;
    color: var(--neon-white);
    border: 2px solid var(--neon-white);
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.1) inset;
}

.submit-btn:hover {
    background-color: var(--neon-white);
    color: #000000;
    box-shadow: var(--neon-glow-strong);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

.success-text {
    color: #4ade80;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
}

.error-text {
    color: #ef4444;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
}

/* Links */
a {
    color: var(--neon-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: var(--neon-glow);
}

footer {
    margin-top: 40px;
    text-align: center;
}

.admin-link, .back-link {
    font-size: 0.9rem;
    opacity: 0.7;
}

.admin-link:hover, .back-link:hover {
    opacity: 1;
}

/* Admin Dashboard Specifics */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filters-section {
    display: flex;
    gap: 20px;
    background: #0a0a0a;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    margin-bottom: 0;
}

.table-section {
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    padding: 1px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #111111;
    color: #cccccc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.data-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

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

.link-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid var(--neon-white);
    color: var(--neon-white);
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.link-btn:hover {
    background-color: var(--neon-white);
    color: #000;
    box-shadow: var(--neon-glow);
}

.loading-indicator, .no-data-message {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container, .admin-header, .filters-section, .table-section {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
