/* ============================================================ */
/* e-QSO ORARI - Modern Landing Page Styles                      */
/* ============================================================ */

/* --- Reset & Variables --- */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #ff6d00;
    --success: #0d904f;
    --danger: #d93025;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #1a1a2e;
    --text: #202124;
    --text-light: #5f6368;
    --text-white: #ffffff;
    --border: #dadce0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 24px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-logo-icon { font-size: 1.5rem; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-btn {
    background: var(--primary) !important;
    color: var(--text-white) !important;
}

.nav-btn:hover {
    background: var(--primary-dark) !important;
    color: var(--text-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* ✅ Background custom */
    background: 
        linear-gradient(135deg, rgba(112, 158, 218, 0.82) 0%, rgba(77, 100, 136, 0.88) 50%, rgba(121, 121, 185, 0.377) 100%),
        url('/assets/images/background_image.jpg') center/cover no-repeat;
    color: var(--text-white);
    overflow: hidden;
    /* ✅ Parallax effect */
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 24px 60px;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.95;
}

.hero-desc {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; opacity: 0.8; }

/* --- Sections --- */
section { padding: 80px 0; }

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* --- Features --- */
.features { background: var(--bg-alt); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Architecture --- */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.arch-card {
    text-align: center;
    padding: 40px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.arch-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.arch-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.arch-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.arch-card p { color: var(--text-light); margin-bottom: 16px; }

.arch-card ul {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.arch-card ul li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.arch-card ul li::before {
    content: "✅ ";
}

/* --- Presets --- */
.presets { background: var(--bg-dark); color: var(--text-white); }
.presets .section-title { color: var(--text-white); }
.presets .section-subtitle { color: rgba(255,255,255,0.7); }

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.preset-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.preset-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.preset-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.badge-high { background: #4caf50; }
.badge-standard { background: #2196f3; }
.badge-low { background: #ff9800; }
.badge-minimal { background: #f44336; }

.preset-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.preset-card p { font-size: 0.9rem; opacity: 0.7; }

/* --- Steps --- */
.quickstart { background: var(--bg-alt); }

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

.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-light); }

/* --- CTA --- */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: var(--text-white);
    text-align: center;
}

.cta h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary { background: var(--text-white); color: var(--primary); }
.cta .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--text-white); }

/* --- Footer --- */
.footer {
    background: #0d0d1a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--text-white); }

.footer-version { margin-top: 12px; font-size: 0.85rem; opacity: 0.5; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-73 { font-weight: 600; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
    
    .features-grid,
    .presets-grid,
    .arch-grid,
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ */
/* ADMIN PANEL STYLES                                           */
/* ============================================================ */

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active, .badge-approved { background: #e6f4ea; color: #0d904f; }
.badge-pending { background: #fff3e0; color: #ff9800; }
.badge-suspended, .badge-banned { background: #fce8e6; color: #d93025; }

/* Action buttons */
.action-btns { 
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-xs:hover { opacity: 0.8; }

.btn-success { background: #0d904f; }
.btn-warning { background: #ff9800; color: #000; }
.btn-info { background: #1a73e8; }
.btn-danger { background: #d93025; }

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: #e6f4ea;
    color: #0d904f;
    border: 1px solid #ceead6;
}

.alert-error {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #f5c6cb;
}

/* Text muted */
.text-muted { 
    color: #999; 
    font-size: 0.8rem; 
    font-style: italic;
}

.text-center { 
    text-align: center; 
    padding: 20px;
    color: #888;
}

/* Card */
.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.card-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: #fafafa;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

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

/* Sidebar Active State */
.sidebar-nav a.active {
    background: rgba(26, 115, 232, 0.15) !important;
    color: #1a73e8 !important;
    font-weight: 600;
}

/* Pagination placeholder */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination a:hover { background: #e8f0fe; }
.pagination .active { background: #1a73e8; color: white; border-color: #1a73e8; }

/* Responsive admin */
@media (max-width: 768px) {
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
    .action-btns {
        flex-direction: column;
    }
    .btn-xs {
        width: 100%;
        text-align: center;
    }
}