:root {
    --bg-primary: #0a0a0f;
    --bg-card: #12121a;
    --accent-red: #e94560;
    --accent-green: #16c79a;
    --accent-purple: #533483;
    --accent-blue: #58a6ff;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --border-color: #2a2a3a;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', 'Noto Sans SC', sans-serif;
    --font-code: 'Fira Code', monospace;
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 48px 36px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.1);
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.login-title {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--accent-red);
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.login-error {
    background: rgba(233, 69, 96, 0.1);
    color: var(--accent-red);
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.login-form .form-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.2);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.form-input option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-red);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-btn:hover {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    transform: translateY(-1px);
}

.back-home {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.back-home:hover {
    text-shadow: 0 0 8px rgba(22, 199, 154, 0.5);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 50%, #0a0a0f 100%);
    color: var(--text-primary);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    border-right: 1px solid var(--border-color);
    overflow: hidden;
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-red), var(--accent-blue), transparent);
    opacity: 0.6;
    animation: sidebarGlow 4s ease-in-out infinite;
}

@keyframes sidebarGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.sidebar-logo {
    padding: 28px 24px 24px;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    color: var(--accent-red);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.5), 0 0 30px rgba(233, 69, 96, 0.2);
    position: relative;
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    opacity: 0.5;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.08), transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover::before {
    width: 100%;
}

.sidebar-link:hover {
    color: var(--text-primary);
    border-left-color: rgba(233, 69, 96, 0.5);
    text-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
}

.sidebar-link.active {
    background: rgba(233, 69, 96, 0.08);
    color: var(--accent-red);
    border-left: 3px solid var(--accent-red);
    text-shadow: 0 0 12px rgba(233, 69, 96, 0.4);
}

.sidebar-link.active::before {
    width: 100%;
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.12), transparent);
}

.sidebar-link.logout {
    margin-top: auto;
    color: var(--text-secondary);
}

.sidebar-link .link-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.admin-main {
    margin-left: 240px;
    flex: 1;
    padding: 36px 40px;
    background: linear-gradient(135deg, #0d0d14 0%, #0f0f1a 50%, #0d0d14 100%);
    min-height: 100vh;
    position: relative;
}

.admin-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

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

.admin-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
}

.admin-header h1 {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--accent-red);
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    position: relative;
}

.admin-header h1::before {
    content: '//';
    color: var(--accent-blue);
    opacity: 0.5;
    margin-right: 12px;
    font-weight: 400;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 18, 26, 0.8) 100%);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transition: all 0.4s;
}

.stat-card:hover {
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 0 25px rgba(233, 69, 96, 0.1), 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover::after {
    top: -30%;
    right: -30%;
}

.stat-icon {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(233, 69, 96, 0.15);
    flex-shrink: 0;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.stat-card:hover .stat-icon::after {
    opacity: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-red);
    display: block;
    font-family: var(--font-heading);
    text-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 50%;
    transition: all 0.5s;
    transform: translate(-50%, -50%);
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-red), #d63851);
    color: #fff;
    border-color: var(--accent-red);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.action-btn.primary:hover {
    box-shadow: 0 0 25px rgba(233, 69, 96, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-btn.primary::before {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.small {
    padding: 5px 14px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.action-btn.danger {
    color: var(--accent-red);
    border-color: rgba(233, 69, 96, 0.3);
}

.action-btn.danger:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-list-item {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 18, 26, 0.6) 100%);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.work-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-red);
    opacity: 0;
    transition: opacity 0.3s;
}

.work-list-item:hover {
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.06), 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
}

.work-list-item:hover::before {
    opacity: 1;
}

.work-list-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.work-list-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-code);
}

.work-category-small {
    background: rgba(233, 69, 96, 0.12);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--accent-red);
    font-family: var(--font-code);
    letter-spacing: 0.5px;
    border: 1px solid rgba(233, 69, 96, 0.15);
}

.work-list-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-form {
    max-width: 700px;
}

.admin-form .form-group {
    margin-bottom: 22px;
}

.admin-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.form-group:focus-within label {
    color: var(--accent-red);
    text-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: var(--font-body);
    background: rgba(18, 18, 26, 0.6);
    color: var(--text-primary);
    position: relative;
}

.form-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.15), 0 0 0 3px rgba(233, 69, 96, 0.05);
    background: rgba(18, 18, 26, 0.9);
    background-image: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
    background-size: 200% 100%;
    animation: inputScanLine 2s linear infinite;
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-red);
    cursor: pointer;
}

.form-error {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-top: 6px;
    display: block;
    font-family: var(--font-code);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.empty-state p {
    font-size: 1rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent-red);
}

.admin-sidebar .sidebar-user-info {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.admin-sidebar .sidebar-user-info .user-greeting {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.admin-sidebar .sidebar-user-info .user-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--accent-red);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(233, 69, 96, 0.3);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(233, 69, 96, 0.2); }
    50% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.4); }
}

.action-btn.primary {
    animation: pulseGlow 3s ease-in-out infinite;
}

.action-btn.primary:hover {
    animation: none;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

.avatar-upload-area {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.avatar-preview:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.2);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 2.5rem;
    opacity: 0.5;
}

.avatar-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-code);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        padding: 16px 0;
    }
    .admin-sidebar::before {
        display: none;
    }
    .sidebar-logo {
        padding: 16px 12px;
        font-size: 0.9rem;
        text-align: center;
    }
    .sidebar-logo span:first-child {
        display: none;
    }
    .sidebar-link {
        padding: 12px;
        justify-content: center;
        font-size: 0.75rem;
    }
    .sidebar-link .link-text {
        display: none;
    }
    .sidebar-link .link-icon {
        width: auto;
    }
    .admin-main {
        margin-left: 60px;
        padding: 16px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(88, 166, 255, 0.6) 10%,
        transparent 20%,
        transparent 30%,
        rgba(233, 69, 96, 0.5) 40%,
        transparent 50%,
        transparent 60%,
        rgba(22, 199, 154, 0.4) 70%,
        transparent 80%,
        transparent 90%,
        rgba(88, 166, 255, 0.6) 100%
    );
    background-size: 100% 200%;
    animation: sidebarDataFlow 4s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

@keyframes sidebarDataFlow {
    0% { background-position: 0 0; }
    100% { background-position: 0 200%; }
}

.stat-card {
    animation: statCardGlow 4s ease-in-out infinite;
}

@keyframes statCardGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(233, 69, 96, 0); }
    33% { box-shadow: 0 0 12px rgba(233, 69, 96, 0.15); }
    66% { box-shadow: 0 0 12px rgba(88, 166, 255, 0.15); }
}

.stat-icon {
    animation: statIconGlow 3s ease-in-out infinite;
}

@keyframes statIconGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(233, 69, 96, 0.1); }
    50% { box-shadow: 0 0 20px rgba(233, 69, 96, 0.3), 0 0 40px rgba(233, 69, 96, 0.1); }
}

.stat-number {
    animation: statNumberFlicker 5s ease-in-out infinite;
}

@keyframes statNumberFlicker {
    0%, 90%, 100% { text-shadow: 0 0 15px rgba(233, 69, 96, 0.3); opacity: 1; }
    92% { text-shadow: 0 0 25px rgba(233, 69, 96, 0.6); opacity: 0.9; }
    94% { text-shadow: 0 0 5px rgba(233, 69, 96, 0.2); opacity: 1; }
    96% { text-shadow: 0 0 30px rgba(233, 69, 96, 0.5); opacity: 0.95; }
}

@keyframes inputScanLine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.admin-form .form-group {
    position: relative;
}

.admin-form .form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.admin-form .form-group:focus-within::after {
    width: 100%;
    opacity: 0.6;
}

.admin-form label {
    transition: all 0.3s;
}

.admin-form .form-group:focus-within label {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.4);
}
