/*
|--------------------------------------------------------------------------
| EUROPA-HOSTING AI PRO CP STYLESHEET
|--------------------------------------------------------------------------
| Applies the Neon Glass Theme and Falling Code Aesthetic to all Control Panel pages.
*/

/* --- 1. THEME & COLORS --- */
:root {
    --bg-dark: #0a0a0a;
    --neon-blue: #00f0ff;
    --neon-red: #ff0055;
    --text-light: #ffffff;
    --text-muted: #888888;
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
}

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

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}

a {
    text-decoration: none;
    color: var(--neon-blue);
    transition: var(--transition-fast);
}

/* --------------------------------------------------- */
/* --- 2. FALLING WORDS BACKGROUND (MATRIX EFFECT) --- */
/* --------------------------------------------------- */

.falling-words-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.code-column {
    position: absolute;
    white-space: pre;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

@keyframes fall-and-loop {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(600vh); }
}

/* --------------------------------------------------- */
/* --- 3. CP HEADER & LAYOUT (Neon Glass Theme) --- */
/* --------------------------------------------------- */

.main-cp-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 800;
}

h1 {
    color: var(--neon-red);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-red);
    letter-spacing: 2px;
}

.subtitle {
    color: var(--neon-blue);
    margin-bottom: 40px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px var(--neon-blue);
}

/* --- 4. CP Grid (Dashboard) --- */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cp-card {
    background-color: rgba(20, 20, 20, 0.8);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid rgba(0, 240, 255, 0.1);
    transition: var(--transition-medium);
    transform-style: preserve-3d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 240, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cp-card:hover {
    transform: translateZ(25px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 30px var(--neon-blue);
    border-color: var(--neon-blue);
}

.cp-card i {
    font-size: 3.5rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--neon-blue);
    transition: var(--transition-fast);
}

.cp-card:hover i {
    color: var(--neon-red);
    text-shadow: 0 0 20px var(--neon-red);
}

.cp-card h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.cp-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Special Style for High-Value Services (Red Glow) */
.cp-card.red-glow {
    border-color: rgba(255, 0, 85, 0.1);
}
.cp-card.red-glow:hover {
    border-color: var(--neon-red);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 35px var(--neon-red);
}

.cp-card.red-glow:hover i {
    color: var(--neon-blue);
    text-shadow: 0 0 20px var(--neon-blue);
}

/* Logout Button */
.logout-btn {
    display: block;
    width: 250px;
    margin: 50px auto 0;
    padding: 15px 0;
    background-color: transparent;
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background-color: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 20px var(--neon-red);
    transform: translateY(-3px);
}

/* --------------------------------------------------- */
/* --- 5. INNER CP PAGE CONTENT (GLASS EFFECT) --- */
/* --------------------------------------------------- */

.cp-section {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.2);
    transition: var(--transition-medium);
    transform-style: preserve-3d;
    min-height: 500px;
}

.cp-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 0, 85, 0.2);
    transform: translateZ(10px);
}

.page-title {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--neon-red);
    margin-bottom: 30px;
    font-style: italic;
}

/* --------------------------------------------------- */
/* --- 6. ENHANCED FORM STYLES (Neon Input/Select) --- */
/* --------------------------------------------------- */

.cp-form-group {
    margin-bottom: 25px;
    text-align: left;
}

.cp-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-blue);
    font-size: 1.05rem;
}

.cp-form-group input, .cp-form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--neon-blue);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 1rem;
    
    /* Subtle inner neon glow */
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2) inset, 0 0 2px rgba(0, 0, 0, 0.8); 
    transition: all 0.3s ease;
    
    /* Ensure selection text is visible and remove default appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cp-form-group input:focus, .cp-form-group select:focus {
    outline: none;
    border-color: var(--neon-red);
    
    /* Intense Red/Blue Focus Glow */
    box-shadow: 0 0 15px var(--neon-red) inset, 
                0 0 10px var(--neon-blue);
    transform: scale(1.005);
}

/* Specific styling for SELECT arrow */
.cp-form-group select {
    /* Using SVG for a neon blue arrow */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2300f0ff" d="M6 8l-4-4h8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}


/* --- UPDATED SUBMIT BUTTON (Pulsing Effect) --- */

.btn-cp-submit {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: var(--neon-red);
    color: var(--bg-dark);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    
    /* Initial Stronger Red Glow */
    box-shadow: 0 0 18px var(--neon-red); 
    transition: all var(--transition-medium);
    
    /* Add the pulsating animation */
    animation: button-pulse 1.5s infinite alternate;
}

.btn-cp-submit:hover {
    background-color: var(--neon-blue);
    box-shadow: 0 0 30px var(--neon-blue), 0 0 50px var(--neon-red);
    color: var(--bg-dark);
    transform: translateY(-4px) scale(1.01);
    animation: none; /* Stop pulsing on hover to signal activation */
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
    }
    100% {
        box-shadow: 0 0 20px var(--neon-red), 0 0 35px var(--neon-red);
    }
}

/* --------------------------------------------------- */
/* --- 7. Scroll Reveal Animations --- */
/* --------------------------------------------------- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
    transition: opacity 1s ease-out, transform 1s ease-out;
    transform-origin: center;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.scroll-reveal.fade-zoom {
    transform: scale(0.9);
}

.scroll-reveal.fade-zoom.visible {
    transform: scale(1);
}

/* --------------------------------------------------- */
/* --- 8. RESPONSIVENESS (Basic adjustments for CP) --- */
/* --------------------------------------------------- */

@media (max-width: 768px) {
    .cp-grid {
        grid-template-columns: 1fr;
    }
    .cp-card {
        padding: 20px;
    }
    h1 {
        font-size: 2rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .cp-section {
        padding: 30px 20px;
    }
    .logout-btn {
        width: 100%;
    }
}
.file-manager-btn {
    margin-top: 30px;
    display: inline-block;
}