/* Persistent Admin System Styles */

/* Golden Admin Badge */
.golden-admin-badge {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700) !important;
    background-size: 200% 200% !important;
    color: #000 !important;
    padding: 12px 18px !important;
    border-radius: 25px !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6) !important;
    z-index: 999999 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    cursor: pointer !important;
    animation: goldenGlow 3s ease-in-out infinite !important;
    border: 2px solid #ffd700 !important;
    user-select: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Orbitron', monospace !important;
}

@keyframes goldenGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.9);
        background-position: 100% 50%;
        transform: scale(1.05);
    }
}

.golden-admin-badge:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 60px rgba(255, 215, 0, 1) !important;
}

.golden-badge-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.golden-badge-content i {
    font-size: 16px;
    animation: crownSpin 4s linear infinite;
}

@keyframes crownSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 380px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border: 2px solid #00FFFF;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
    z-index: 999998;
    color: #fff;
    font-family: 'Orbitron', 'Roboto', monospace;
    max-height: 85vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    border-image: linear-gradient(135deg, #00FFFF, #01257D, #00FFFF) 1;
}

.admin-header {
    background: linear-gradient(135deg, #01257D, #002244, #01257D);
    padding: 18px 24px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    border-radius: 18px 18px 0 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #00FFFF;
}

.admin-title i {
    color: #ffd700;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px #ffd700; }
    to { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

.admin-controls {
    display: flex;
    gap: 5px;
}

.admin-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid #00FFFF;
    color: #00FFFF;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.admin-btn:hover {
    background: #00FFFF;
    color: #001122;
    transform: scale(1.05);
}

.admin-content {
    padding: 20px;
}

.admin-section {
    margin-bottom: 28px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.admin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 50%, rgba(1, 37, 125, 0.1) 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.admin-section:hover::before {
    opacity: 1;
}

.admin-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.2);
    border-color: #00FFFF;
}

.admin-section h3 {
    color: #00FFFF;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.admin-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.feature-btn {
    background: linear-gradient(135deg, #01257D, #00FFFF);
    border: 2px solid transparent;
    color: #fff;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-btn:hover::before {
    left: 100%;
}

.feature-btn:hover {
    background: linear-gradient(135deg, #00FFFF, #01257D);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
    border-color: #00FFFF;
}

.feature-btn i {
    font-size: 12px;
}

.admin-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
}

.stat-item span:first-child {
    color: #00FFFF;
    font-weight: bold;
}

.stat-item span:last-child {
    color: #fff;
}

/* Admin Notifications */
.admin-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    max-width: 300px;
}

.admin-notification.success {
    background: #28a745;
    color: white;
}

.admin-notification.error {
    background: #dc3545;
    color: white;
}

.admin-notification.info {
    background: #17a2b8;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .golden-admin-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .admin-panel {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        max-height: 70vh;
    }

    .admin-features {
        grid-template-columns: 1fr;
    }

    .feature-btn {
        font-size: 10px;
        padding: 8px 6px;
    }
}

/* Dropdown Styles */
#adminDropdown {
    position: fixed;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #ffd700;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    z-index: 1000000;
    min-width: 200px;
    padding: 15px;
    color: #000;
    font-weight: bold;
}

.dropdown-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Revoke Button Styles */
.revoke-btn {
    background: #dc3545 !important;
    color: white !important;
    border: 1px solid #dc3545 !important;
}

.revoke-btn:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.revoke-success {
    text-align: center;
    padding: 30px;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 15px;
    color: #fff;
}

.revoke-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.revoke-icon i {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Upload Progress and Results */
.upload-progress {
    text-align: center;
    padding: 30px;
}

.progress-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 255, 0.3);
    border-top: 4px solid #00FFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.success-result {
    text-align: center;
    padding: 30px;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 15px;
    color: #fff;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.link-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.link-input-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #00FFFF;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.link-input-group button {
    padding: 10px 15px;
    border: 1px solid #00FFFF;
    border-radius: 6px;
    background: #00FFFF;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.link-input-group button:hover {
    background: #0099cc;
    transform: translateY(-2px);
}

/* Admin Console Styles */
.admin-console {
                position: fixed;
                bottom: 20px;
                left: 20px;
                width: 600px;
                height: 300px;
                background: #000;
                color: #00FF00;
                border: 2px solid #FFD700;
                border-radius: 10px;
                font-family: 'Courier New', monospace;
                font-size: 12px;
                padding: 10px;
                z-index: 9997;
                display: none;
                overflow-y: auto;
            }

            .admin-disable-dropdown {
                padding: 10px;
            }

            .disable-btn {
                background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
                color: white;
                border: none;
                padding: 8px 15px;
                border-radius: 6px;
                font-size: 12px;
                font-weight: 600;
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 8px;
                transition: all 0.3s ease;
                width: 100%;
            }

            .disable-btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
            }