/* Global Logo Constraint - Fix for enormous logo issue */
.login-logo, .sidebar-logo {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.sidebar-logo { width: 60px !important; }
.login-logo { width: 180px !important; }

:root {
    --primary: #4a90e2;
    --secondary: #ff9f43;
    --accent: #5f27cd;
    --success: #1dd1a1;
    --danger: #ff6b6b;
    --dark: #2d3436;
    --light: #f1f2f6;
    --bg: #e0eafc;
    --white: #ffffff;
    --font-main: 'Fredoka', sans-serif;
    --font-alt: 'Outfit', sans-serif;
    
    --kids-gradient: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%);
    --tech-gradient: linear-gradient(135deg, #4a90e2 0%, #5f27cd 100%);
    --glass: rgba(255, 255, 255, 0.2);
    
    /* New Global Variables for Dark Pages */
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-cyan: #22d3ee;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
}

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

body {
    font-family: var(--font-main);
    background: #f0f2f5;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Shapes */
body::before, body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
    animation: float 15s infinite alternate ease-in-out;
}

body::after {
    background: var(--secondary);
    right: -100px;
    bottom: -100px;
    animation-delay: -7s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--tech-gradient);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    position: relative;
}

.logo .icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo h1 {
    font-size: 3.2rem;
    font-family: var(--font-alt);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-family: var(--font-alt);
    position: relative;
}

/* Selection Screen */
.selection-screen {
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.selection-card {
    position: relative;
    height: 350px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.selection-card.kids { background: var(--kids-gradient); }
.selection-card.tech { background: var(--tech-gradient); }

.selection-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.selection-card .card-info {
    z-index: 2;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.selection-card:hover .card-glow {
    transform: translateX(100%);
}

.selection-card .card-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.selection-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.selection-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: var(--font-alt);
}

.selection-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-select {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Activity Grid & Challenges */
main {
    flex: 1;
    padding: 40px 0;
}

.section-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.btn-back {
    text-decoration: none;
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

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

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 3px solid transparent;
}

.activity-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.activity-card.tech-theme:hover {
    border-color: var(--primary);
}

.activity-card:not(.tech-theme):hover {
    border-color: var(--secondary);
}

.activity-card .card-icon {
    height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.activity-card .card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    padding: 25px;
    flex: 1;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card-content p {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.5;
}

.card-footer {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.btn-play {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s;
}

.tech-theme .btn-play { background: var(--primary); }

.activity-card:hover .btn-play {
    transform: scale(1.05);
}

/* Activity Card Rating */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-rating {
    padding: 0 25px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1.4rem;
    color: #dfe6e9;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.star.filled {
    color: #f1c40f;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}

.star:hover {
    transform: scale(1.2);
}

.rating-text {
    font-size: 0.85rem;
    color: #b2bec3;
    font-family: var(--font-alt);
}

/* Admin Multi-level */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e1e8ef;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
}

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

.badges {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.url-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 5px 0;
}

.analytics-hint {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(74, 144, 226, 0.1);
    padding: 5px 12px;
    border-radius: 5px;
    display: inline-block;
}

.btn-duplicate {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-duplicate:hover { opacity: 0.9; }

/* Existing styles below... */

.btn-delete {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Fixed Logo */
.fixed-logo {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.fixed-logo:hover {
    transform: scale(1.05) translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.fixed-logo img {
    height: 90px;
    width: auto;
    display: block;
}

/* Fixed Teacher Button */
.fixed-teacher-btn {
    position: fixed;
    top: 25px;
    right: 345px; /* Avoid comments sidebar (320px) */
    z-index: 1000;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixed-teacher-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

/* About Author Section */
.about-author {
    margin-top: 80px;
    padding-bottom: 40px;
}

.about-card {
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
}

.about-image {
    width: 180px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f0f2f5;
    background: white;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.about-info h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: var(--font-alt);
}

.about-info p {
    font-size: 1.1rem;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.about-tags span {
    background: #f0f2f5;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .about-tags {
        justify-content: center;
    }

    .fixed-logo {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
        border-radius: 15px;
    }
    
    .fixed-logo img {
        height: 60px;
    }

    .fixed-teacher-btn {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        border-radius: 15px;
        font-size: 0.85rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-scale {
    animation: scaleIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glass Enhancement */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Filter Bar */
.filter-bar {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 20px;
}

.filter-form {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid #e1e8ef;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.category-box select {
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #e1e8ef;
    font-family: var(--font-alt);
    font-weight: 600;
    color: var(--primary);
    outline: none;
    cursor: pointer;
}

/* Comments Sidebar - Full Height */
.comments-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    z-index: 900;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar-header {
    background: var(--tech-gradient);
    color: white;
    padding: 30px 20px;
    font-weight: 800;
    font-size: 1.3rem;
    font-family: var(--font-alt);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comments-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.ticker-content {
    display: flex;
    flex-direction: column;
    animation: tickerVertical 60s linear infinite;
}

.ticker-item {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s;
}

.ticker-avatar {
    font-size: 2.5rem;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ticker-text {
    flex: 1;
}

.ticker-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 3px;
    font-size: 1.1rem;
}

.ticker-item small {
    display: block;
    color: #95a5a6;
    margin-top: 5px;
    font-style: italic;
    font-size: 0.8rem;
}

/* Form Row for new fields */
.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row input, .form-row select {
    flex: 1;
}

.input-school {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e1e8ef;
    background: white;
    font-family: var(--font-alt);
    color: var(--primary);
    cursor: pointer;
}

/* Vitrine de Jogos Sidebar (Canto Direito) */
.games-showcase-sidebar {
    position: fixed;
    right: 20px;
    top: 90px;
    width: 320px;
    height: calc(100vh - 120px);
    max-height: 680px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(18px);
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.showcase-header {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    padding: 16px 18px;
    color: white;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #38bdf8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.showcase-badge {
    background: #f59e0b;
    color: #000;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.showcase-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: showcaseVertical 38s linear infinite;
    padding: 0 14px;
}

.showcase-content:hover {
    animation-play-state: paused;
}

@keyframes showcaseVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(30, 41, 59, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 12px 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item:hover {
    transform: translateX(-4px) scale(1.02);
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
}

.showcase-icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(56, 189, 248, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.showcase-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.showcase-info strong.showcase-title {
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-tag {
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
}

.showcase-play-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 4px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Global Responsiveness */
body {
    padding-right: 320px; /* Space for sidebar */
}

@media (max-width: 1300px) {
    body { padding-right: 0; }
    .comments-sidebar, .games-showcase-sidebar {
        display: none !important;
    }
    
    .fixed-teacher-btn {
        right: 25px; /* Back to right edge since sidebar is hidden */
    }
}

@media (orientation: portrait) {
    .selection-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

/* Avatar Selector */
.avatar-selector {
    margin-bottom: 20px;
}

.avatar-selector p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.avatar-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.avatar-options label {
    cursor: pointer;
}

.avatar-options input {
    display: none;
}

.avatar-options span {
    font-size: 2rem;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: 0.3s;
    display: block;
}

.avatar-options input:checked + span {
    border-color: var(--primary);
    background: rgba(74, 144, 226, 0.1);
    transform: scale(1.1);
}

/* Projects Mural */
.projects-mural {
    margin-top: 60px;
    padding: 40px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* QR Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Login Page - Centralized & Larger */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: var(--font-main);
}

.login-card {
    width: 100%;
    max-width: 500px;
    padding: 60px 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.4);
    animation: slideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.login-logo {
    max-width: 180px !important;
    height: auto !important;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.login-card h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-family: var(--font-alt);
    font-weight: 800;
}

.login-card p {
    color: #636e72;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.login-card input {
    width: 100%;
    font-size: 1.2rem;
    padding: 18px 25px;
    border-radius: 20px;
    border: 2px solid #edf2f7;
    margin-bottom: 25px;
    transition: 0.3s;
    text-align: center;
    background: white;
}

.login-card input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    outline: none;
}

/* Sidebar Dashboard Redesign */
.admin-dashboard-new {
    display: flex;
    min-height: 100vh;
    background: #f4f7f9;
    font-family: 'Outfit', sans-serif;
}

.admin-sidebar {
    width: 280px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar-top {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-top h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    width: 100%;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #94a3b8;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    border-left: 4px solid var(--accent);
}

.sidebar-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-logout {
    display: block;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #ef4444;
}

/* Main Content Area */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-content {
    margin-left: 280px;
    flex: 1;
    padding: 40px;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.workspace-header h1 {
    font-size: 2.2rem;
    color: #1e293b;
    font-family: var(--font-alt);
}

.btn-add-main {
    padding: 12px 25px;
    background: var(--tech-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* New Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card-new {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.stat-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
    background: rgba(74, 144, 226, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.stat-data .label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-data .value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th {
    text-align: left;
    padding: 15px 20px;
    background: rgba(0,0,0,0.02);
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #edf2f7;
}

.admin-table td {
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(74, 144, 226, 0.02);
}

.mission-info-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-bubble {
    background: #f8f9fa;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #edf2f7;
}

/* Comment Management Grid */
.comment-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comment-admin-card {
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #f59e0b;
}

.comment-admin-card.approved {
    border-left-color: #10b981;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-body {
    background: rgba(0,0,0,0.02);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-style: italic;
}

.comment-actions-row {
    display: flex;
    gap: 10px;
}

.btn-edit { background: #64748b; color: white; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; }
.btn-approve-new { background: #10b981; color: white; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; }
.btn-delete-new { background: #ef4444; color: white; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; }

/* Modal Edits */
.input-text-area {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    margin: 20px 0;
}

/* Responsiveness for Sidebar */
@media (max-width: 1024px) {
    .admin-sidebar { width: 80px; }
    .sidebar-top h3, .nav-item span { display: none; }
    .admin-content { margin-left: 80px; }
    .comment-sections { grid-template-columns: 1fr; }
}

.badge-new, .badge-popular {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.badge-new { background: #ff4757; }
.badge-popular { background: #ffa502; }

/* Comment Form in Card */
.btn-comment-toggle {
    margin-top: 10px;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-comment-toggle:hover {
    background: var(--primary);
    color: white;
}

.comment-form-container {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.comment-form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-name, .input-text {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
}

.input-text {
    height: 80px;
    resize: none;
}

.btn-send-comment {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* Admin Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.stat-card h3 { font-size: 1rem; color: #7f8c8d; margin-bottom: 10px; }
.stat-card .value { font-size: 2.5rem; font-weight: 800; color: var(--primary); }

@media (max-width: 1100px) {
    .comments-sidebar {
        position: static;
        width: 100%;
        max-height: 250px;
        margin-top: 40px;
    }
}

.btn-fav { background: none; border: none; font-size: 1.5rem; cursor: pointer; transition: 0.3s; filter: grayscale(100%); }
.btn-fav.active { filter: grayscale(0%); transform: scale(1.2); }
.btn-fav:hover { transform: scale(1.1); }

.btn-icon-small { background: rgba(74, 144, 226, 0.1); border: none; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.btn-icon-small:hover { background: var(--primary); color: white; transform: scale(1.1); }

/* ==========================================================================
   TEMA KIDS PADRÃO & GLASSMORPHISM
   ========================================================================== */
:root, [data-theme="kids"] {
    --primary: #ff4757;
    --secondary: #ffa502;
    --accent: #2ed573;
    --bg: #fff0f3;
}

body, [data-theme="kids"] body {
    background: linear-gradient(135deg, #ffeaa7 0%, #ff7675 100%);
    min-height: 100vh;
}

/* Glassmorphic UI Classes */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    border-radius: 20px;
}

/* ==========================================================================
   AVATAR PICKER DICEBEAR
   ========================================================================== */
.avatar-picker-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.95);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 2px solid var(--secondary);
}

.avatar-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    padding: 6px;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.avatar-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-picker-label {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
}

.avatar-style-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.avatar-style-btn {
    background: #f1f2f6;
    border: 2px solid #dfe4ea;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-style-btn.active {
    background: var(--primary);
    color: white;
    border-color: #ff6b81;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

/* Animação suave para abas */
.fade-in-panel {
    animation: fadeInTab 0.3s ease-in-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   SLIM TABLET & MOBILE ADSENSE RESPONSIVE ENGINE (ULTRA-FINO)
   ========================================================== */
.adsense-tablet-wrapper,
.adsense-banner-container,
.tablet-ad-banner,
.adsense-box,
.adsense-top-banner,
.adsense-bottom-banner {
    width: 100% !important;
    max-width: 970px !important;
    min-height: 50px !important;
    max-height: 115px !important;
    margin: 8px auto !important;
    padding: 4px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    clear: both;
}

.adsense-tablet-wrapper ins.adsbygoogle,
.adsense-banner-container ins.adsbygoogle,
.tablet-ad-banner ins.adsbygoogle,
.adsense-box ins.adsbygoogle,
.adsense-top-banner ins.adsbygoogle,
.adsense-bottom-banner ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 50px !important;
    max-height: 90px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Rótulo super discreto e fino */
.adsense-micro-label {
    font-size: 0.62rem !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 2px 0 !important;
    line-height: 1 !important;
    opacity: 0.75 !important;
}

/* Esconder sidebars verticais fixas em tablets e celulares (< 1350px) para não sobrepor o conteúdo touch */
@media (max-width: 1349px) {
    .adsense-sidebar-left,
    .adsense-sidebar-right,
    .adsense-game-sidebar-left,
    .adsense-game-sidebar-right {
        display: none !important;
    }
}

/* Exibir sidebars fixas apenas em telas Desktop Ultra-Wide (>= 1350px) */
@media (min-width: 1350px) {
    .adsense-sidebar-left,
    .adsense-sidebar-right,
    .adsense-game-sidebar-left,
    .adsense-game-sidebar-right {
        display: block !important;
    }
}


