/* ================================
   ADMIN PANEL STYLES
   Fort Knox Security Design
   ================================ */

.admin-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

.comic-background-admin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px);
    z-index: -1;
    pointer-events: none;
}

/* ================================
   ADMIN NAVIGATION
   ================================ */

.admin-nav {
    background: #0f3460;
    border-bottom: 5px solid #e94560;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav .nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.admin-logo {
    font-family: var(--font-hero);
    font-size: 2rem;
    color: #e94560;
    text-shadow: 3px 3px 0 #000;
}

.admin-user {
    font-family: var(--font-text);
    color: #fff;
    font-size: 1.1rem;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    font-family: var(--font-text);
    padding: 0.8rem 1.5rem;
    background: #16213e;
    color: #fff;
    border: 3px solid #e94560;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-btn:hover {
    background: #e94560;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-logout {
    background: #c23b50;
}

/* ================================
   LOGIN PAGE
   ================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-panel {
    background: #fff;
    border: 6px solid #0f3460;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 10px 0 #0f3460,
        0 15px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-shield {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e94560, #c23b50);
    border: 5px solid #0f3460;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.shield-letter {
    font-family: var(--font-hero);
    font-size: 4rem;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.login-title {
    font-family: var(--font-hero);
    font-size: 2rem;
    color: #0f3460;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.login-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-family: var(--font-text);
    font-size: 1.1rem;
    color: #0f3460;
    display: block;
    margin-bottom: 0.5rem;
}

.form-input {
    font-family: var(--font-text);
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 3px solid #0f3460;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #e94560;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.btn {
    font-family: var(--font-text);
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: #e94560;
    color: #fff;
    border: 3px solid #0f3460;
}

.btn-primary:hover {
    background: #c23b50;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.btn-login {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.3rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.security-info {
    font-family: var(--font-text);
    color: #16213e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.back-link {
    color: #e94560;
    text-decoration: none;
    font-family: var(--font-text);
}

.back-link:hover {
    text-decoration: underline;
}

/* ================================
   ADMIN CONTAINER
   ================================ */

.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.admin-header {
    margin-bottom: 3rem;
}

.page-title {
    font-family: var(--font-hero);
    font-size: 3rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ================================
   ALERTS
   ================================ */

.alert {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 4px solid;
    border-radius: 10px;
    font-family: var(--font-text);
}

.alert-danger {
    background: #ffe5e5;
    border-color: #e94560;
    color: #c23b50;
}

.alert-success {
    background: #e5ffe5;
    border-color: #6BCB77;
    color: #4a9d54;
}

/* ================================
   STATS CARDS
   ================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #fff;
    border: 5px solid;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.card-blue { border-color: #2E86DE; }
.card-green { border-color: #6BCB77; }
.card-purple { border-color: #A855F7; }

.stat-icon {
    font-size: 3rem;
}

.stat-value {
    font-family: var(--font-hero);
    font-size: 2.5rem;
    color: #0f3460;
}

.stat-label {
    font-family: var(--font-text);
    font-size: 1.1rem;
    color: #666;
}

/* ================================
   CONTENT SECTION
   ================================ */

.content-section {
    background: #fff;
    border: 5px solid #0f3460;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-hero);
    font-size: 2rem;
    color: #0f3460;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ================================
   TABLE
   ================================ */

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-text);
}

.data-table thead {
    background: #0f3460;
    color: #fff;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-size: 1.1rem;
}

.data-table tbody tr {
    border-bottom: 2px solid #eee;
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table td {
    padding: 1rem;
}

.font-bold {
    font-weight: bold;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.badge-success {
    background: #6BCB77;
    color: #fff;
}

.badge-danger {
    background: #e94560;
    color: #fff;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
}

.btn-info {
    background: #2E86DE;
    color: #fff;
    border: 2px solid #0f3460;
}

.btn-warning {
    background: #FFD93D;
    color: #0f3460;
    border: 2px solid #0f3460;
}

.btn-danger {
    background: #e94560;
    color: #fff;
    border: 2px solid #0f3460;
}

.btn-sm:hover {
    transform: scale(1.1);
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* ================================
   EDIT FORM
   ================================ */

.edit-form {
    max-width: 1200px;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group-large {
    grid-column: span 1;
}

.form-textarea {
    font-family: monospace;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 3px solid #0f3460;
    background: #f8f9fa;
    resize: vertical;
    min-height: 400px;
}

.form-textarea:focus {
    outline: none;
    border-color: #e94560;
    background: #fff;
}

.form-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-text {
    font-family: var(--font-text);
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    border: 3px solid #0f3460;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-3px);
}

/* ================================
   HELP SECTION
   ================================ */

.help-section {
    background: #fff;
    border: 5px solid #6BCB77;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.help-title {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    color: #0f3460;
    margin-bottom: 1rem;
}

.help-grid {
    display: grid;
    gap: 1rem;
}

.help-item {
    font-family: var(--font-text);
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #6BCB77;
}

/* ================================
   SECURITY PANEL
   ================================ */

.security-panel {
    background: #0f3460;
    border: 5px solid #e94560;
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    margin-top: 2rem;
}

.security-title {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
}

.security-label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: #e94560;
}

.security-value {
    font-family: monospace;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .admin-nav .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}
