/* ===== RESET & VARIÁVEIS ===== */
:root {
    --e-global-color-primary: #0B5BD7; /* deep blue */
    --e-global-color-secondary: #2F3A4A; /* dark slate */
    --e-global-color-text: #4A5560; /* muted text */
    --e-global-color-accent: #EF476F; /* accent/red */
    --e-global-color-24e3523: #4F88BE;
    --e-global-color-9fb0033: #005AA7; /* kept for compatibility */
    --e-global-color-amarelo: #F9C74F;

    --e-global-typography-primary-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --e-global-typography-primary-font-weight: 700;
    --e-global-typography-secondary-font-family: "Merriweather", serif;
    --e-global-typography-secondary-font-weight: 600;
    --e-global-typography-text-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --e-global-typography-text-font-weight: 400;
    --e-global-typography-accent-font-family: "Inter", sans-serif;
    --e-global-typography-accent-font-weight: 600;

    --pcbg-cl: #fff;
    --pctext-cl: #313131;
    --pcborder-cl: #dedede;
    --pcheading-cl: #313131;
    --pcmeta-cl: #888888;
    --pcaccent-cl: #6eb48c;
    --pcbody-font: 'Open Sans', sans-serif;
    --pchead-font: 'Roboto', sans-serif;
    --pchead-wei: 600;
    --pcctain: 1280px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--pcbody-font);
    color: var(--pctext-cl);
    background-color: var(--pcbg-cl);
    font-size: 15px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: var(--pcheading-cl);
    transition: color var(--transition);
}
a:hover {
    color: var(--e-global-color-9fb0033);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--pcctain);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--pcbg-cl);
    border-bottom: 3px solid var(--e-global-color-amarelo);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--pchead-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--pcheading-cl);
}
.logo-img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}
.logo-text span {
    color: var(--e-global-color-9fb0033);
}
.logo i {
    color: var(--e-global-color-primary);
    margin-right: 6px;
}

/* Menu */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    font-family: var(--pchead-font);
    font-weight: 500;
}
.main-nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--pctext-cl);
}
.main-nav ul li a i {
    color: var(--e-global-color-9fb0033);
    font-size: 0.9rem;
}
.main-nav ul li a:hover {
    color: var(--e-global-color-amarelo);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--pcheading-cl);
    cursor: pointer;
    padding: 4px 8px;
}

/* Mobile main nav behavior: hide nav and show hamburger; when .open show dropdown */
@media (max-width: 900px) {
    .main-nav {
        display: none !important;
    }
    .main-nav.open {
        display: flex !important;
        position: absolute;
        top: 64px;
        right: 16px;
        background: #fff;
        padding: 10px 12px;
        border-radius: 8px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        flex-direction: column;
        min-width: 220px;
        z-index: 9999;
    }
    .main-nav.open ul {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .main-nav .nav-brand { display:none; }
    .main-nav.open .nav-brand { display:block; }

    .main-nav.open ul li a {
        padding: 8px 12px;
        display: block;
        white-space: nowrap;
    }

    /* When menu is open prevent background scroll */
    body.menu-open { overflow: hidden; }

    .menu-toggle {
        display: block;
    }

    /* Keep header compact */
    .header-container { align-items: center; }

    /* On very small devices make main nav dropdown full width */
    @media (max-width: 420px) {
        .main-nav.open {
            position: fixed;
            left: 0;
            right: 0;
            top: 56px;
            min-width: auto;
            margin: 0;
            border-radius: 0;
            padding: 12px 16px;
        }
    }
}


/* ===== DESTAQUE ===== */
.featured-section {
    /* Reduced top padding to tighten spacing under the header */
    padding: 20px 0 12px;
}
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--pcbg-cl);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--pcborder-cl);
}
.featured-image {
    overflow: hidden;
    height: 100%;
    max-height: 320px; /* limitando a altura para não ficar gigante */
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 260px;
}
.featured-content {
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.badge {
    display: inline-block;
    background: var(--e-global-color-amarelo);
    color: var(--pcheading-cl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.featured-content h2 {
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 8px;
}
.featured-content h2 a {
    color: var(--pcheading-cl);
}
.featured-content .meta {
    font-size: 0.85rem;
    color: var(--pcmeta-cl);
    margin-bottom: 12px;
}
.featured-content .excerpt {
    color: var(--e-global-color-text);
    margin-bottom: 18px;
    line-height: 1.6;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--e-global-color-9fb0033);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition), transform 0.15s;
    align-self: flex-start;
}
.btn:hover {
    background: var(--e-global-color-amarelo);
    color: var(--pcheading-cl);
    transform: scale(1.02);
}
.btn i {
    font-size: 0.8rem;
}

/* ===== GRID DE NOTÍCIAS ===== */
.news-section {
    /* Reduced spacing so content appears closer to header */
    padding: 16px 0 30px;
}
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* ===== ADMIN DASHBOARD ===== */
.section-title {
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--e-global-color-amarelo);
    display: inline-block;
}
.section-title i {
    color: var(--e-global-color-amarelo);
    margin-right: 10px;
}

/* Cards */
.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.news-card {
    background: var(--pcbg-cl);
    border: 1px solid var(--pcborder-cl);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.card-image {
    position: relative;
    overflow: hidden;
    height: 180px; /* altura fixa para todos os cards */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-card:hover .card-image img {
    transform: scale(1.04);
}
.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--e-global-color-amarelo);
    color: var(--pcheading-cl);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.card-content {
    padding: 16px 18px 20px;
}
.card-content h3 {
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 6px;
}
.card-content h3 a {
    color: var(--pcheading-cl);
}
.card-content .meta {
    font-size: 0.8rem;
    color: var(--pcmeta-cl);
    margin-bottom: 8px;
}
.card-content .excerpt {
    font-size: 0.9rem;
    color: var(--e-global-color-text);
    line-height: 1.5;
    margin-bottom: 12px;
}
.read-more {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--e-global-color-9fb0033);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.read-more:hover {
    color: var(--e-global-color-amarelo);
}

/* ===== SIDEBAR ===== */
.widget {
    background: var(--pcbg-cl);
    border: 1px solid var(--pcborder-cl);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.widget h3 {
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--e-global-color-amarelo);
    padding-bottom: 6px;
}
.widget h3 i {
    color: var(--e-global-color-amarelo);
    margin-right: 8px;
}
.widget ul {
    list-style: none;
}
.widget ul li {
    margin-bottom: 10px;
}
.widget ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pctext-cl);
    font-size: 0.95rem;
}
.widget ul li a i {
    color: var(--e-global-color-amarelo);
    font-size: 0.7rem;
}
.widget ul li a:hover {
    color: var(--e-global-color-9fb0033);
}
.popular-list li a {
    justify-content: flex-start;
}
.category-list li a {
    justify-content: space-between;
}
.category-list li a span {
    background: var(--e-global-color-amarelo);
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pcheading-cl);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--e-global-color-9fb0033);
    color: rgba(255,255,255,0.9);
    padding: 28px 0;
    border-top: 3px solid var(--e-global-color-amarelo);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer strong {
    color: #fff;
}
.site-footer i {
    color: var(--e-global-color-amarelo);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-image {
        max-height: 300px;
    }
    .featured-content {
        padding: 20px;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0 8px;
        gap: 12px;
        border-top: 1px solid var(--pcborder-cl);
        margin-top: 12px;
    }
    .main-nav ul.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .logo a {
        font-size: 1.3rem;
    }
    .logo-img {
        height: 40px;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .featured-content h2 {
        font-size: 1.4rem;
    }
    .featured-image {
        max-height: 250px;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    .featured-content h2 {
        font-size: 1.2rem;
    }
    .featured-image {
        max-height: 200px;
    }
    .card-content h3 {
        font-size: 1rem;
    }
    .btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    .logo-img {
        height: 32px;
    }
    .logo a {
        font-size: 1.1rem;
    }
    .card-image {
        height: 150px;
    }
}

/* ===== AJUSTE PARA NÃO CORTAR IMAGENS ===== */
.card-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f5f5f5;
    transition: transform 0.3s;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    min-height: 260px;
}
.carousel-slide .slide-image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f5f5f5;
}

/* ===== ADMIN / LOGIN ===== */
.auth-page {
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f2f5;
}
.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    max-width: 400px;
    width: 100%;
}
.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.login-box h1 {
    display: none;
}

.login-box h1 i {
    color: var(--e-global-color-9fb0033);
}
.login-box h2 {
    display: none;
}

.login-box .form-actions {
    display: flex;
    justify-content: center;
}

.login-box .btn-block {
    width: auto;
    min-width: 180px;
    padding: 12px 24px;
}
.admin-header {
    background: #fff;
    border-bottom: 2px solid var(--e-global-color-9fb0033);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.admin-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.admin-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pctext-cl);
}
.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}
.admin-nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pctext-cl);
    transition: background var(--transition);
}
.admin-nav ul li a:hover {
    background: var(--e-global-color-amarelo);
}
.admin-nav ul li a.active {
    background: var(--e-global-color-9fb0033);
    color: #fff;
}
.admin-main {
    padding: 30px 0 80px;
}
.admin-footer {
    background: var(--e-global-color-9fb0033);
    color: rgba(255,255,255,0.9);
    padding: 20px 0;
    border-top: 3px solid var(--e-global-color-amarelo);
    margin-top: 30px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--e-global-color-9fb0033);
}
.stat-card:nth-child(2) { border-left-color: var(--e-global-color-amarelo); }
.stat-card:nth-child(3) { border-left-color: #6EC1E4; }
.stat-card:nth-child(4) { border-left-color: #61CE70; }
.stat-icon {
    font-size: 2.4rem;
    color: var(--e-global-color-9fb0033);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,90,167,0.08);
    border-radius: 12px;
}
.stat-card:nth-child(2) .stat-icon { color: var(--e-global-color-amarelo); background: rgba(249,199,79,0.15); }
.stat-card:nth-child(3) .stat-icon { color: #6EC1E4; background: rgba(110,193,228,0.12); }
.stat-card:nth-child(4) .stat-icon { color: #61CE70; background: rgba(97,206,112,0.12); }
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pcheading-cl);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--pcmeta-cl);
}

.recent-news {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.recent-news ul {
    list-style: none;
}
.recent-news ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--pcborder-cl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.recent-news ul li a {
    color: var(--pctext-cl);
    font-weight: 500;
}
.recent-news ul li .date {
    font-size: 0.75rem;
    color: var(--pcmeta-cl);
}

.table-responsive {
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    text-align: left;
    padding: 12px 10px;
    background: #f4f7fc;
    font-weight: 600;
    border-bottom: 2px solid var(--pcborder-cl);
}
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--pcborder-cl);
}
.admin-table tr:hover td {
    background: #fafafa;
}

.publicar-form {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    max-width: 800px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--pcheading-cl);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pcborder-cl);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--e-global-color-9fb0033);
    outline: none;
}
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 26px;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--e-global-color-9fb0033);
}
.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.btn-secondary {
    background: var(--pcborder-cl);
    color: var(--pctext-cl);
}
.btn-secondary:hover {
    background: #c0c0c0;
}
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.alert-danger {
    background: #f8d7da;
    color: #721c24;
}
.alert-success {
    background: #d4edda;
    color: #155724;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
}
.btn-danger {
    background: #e74c3c;
    color: #fff;
}
.btn-danger:hover {
    background: #c0392b;
}
.badge-success {
    background: #d4edda;
    color: #155724;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-warning {
    background: #fff3cd;
    color: #856404;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.page-header {
    /* Reduce header bottom gap to keep content visually tighter under header */
    margin-bottom: 12px;
}
.page-header h1 {
    font-family: var(--e-global-typography-secondary-font-family);
    font-weight: 700;
    font-size: 1.8rem;
}
.page-header h1 i {
    color: var(--e-global-color-amarelo);
    margin-right: 10px;
}
.page-header p {
    color: var(--pcmeta-cl);
    margin-top: 4px;
}

/* ===== LOGIN LOGO ===== */
.login-logo {
    max-height: 60px;
    width: auto;
    display: block;
    margin: 0 auto 16px auto;
}

/* ===== LOGIN PAGE - ESTILOS ESPECÍFICOS ===== */
.auth-page {
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}
.auth-page main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}
.login-box {
    background: #fff;
    padding: 40px 36px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    max-width: 400px;
    width: 100%;
}
.login-brand {
    text-align: center;
    margin-bottom: 24px;
}
.login-logo {
    max-height: 48px; /* Reduzido para ficar mais compacto */
    width: auto;
    display: block;
    margin: 0 auto 8px;
}
.login-title {
    font-family: var(--pchead-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--pcheading-cl);
    margin: 0;
    letter-spacing: -0.5px;
}
.login-title span {
    color: var(--e-global-color-9fb0033);
}
.login-box .form-group {
    margin-bottom: 16px;
}
.login-box .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--pcheading-cl);
}
.login-box .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pcborder-cl);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s;
}
.login-box .form-group input:focus {
    border-color: var(--e-global-color-9fb0033);
    outline: none;
}
.login-box .btn-block {
    width: 100%;
    justify-content: center;
}
.login-box .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}
.login-box .alert-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ===== ADMIN - CATEGORIAS E UTILIZADORES ===== */
.admin-table code {
    background: #f4f7fc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--e-global-color-9fb0033);
}
.admin-table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-success {
    background: #d4edda;
    color: #155724;
}
.badge-warning {
    background: #fff3cd;
    color: #856404;
}
/* Melhorias nos botões de ação */
.btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Responsividade para tabelas */
@media (max-width: 768px) {
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
    }
    .admin-table .btn-sm {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* Estilo do select e inputs mais refinado */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* ===== ADMIN TABLE - AJUSTES PARA BOTÕES ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}
.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--pcborder-cl);
    vertical-align: middle;
}
.admin-table th {
    background: #f4f7fc;
    font-weight: 600;
    color: var(--pcheading-cl);
    border-bottom: 2px solid var(--pcborder-cl);
}
.admin-table tr:hover td {
    background: #fafafa;
}
.admin-table .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s;
    min-width: 32px;
    min-height: 32px;
}
.admin-table .btn-sm i {
    font-size: 0.85rem;
}
.admin-table .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.admin-table .btn-primary {
    background: var(--e-global-color-9fb0033);
    color: #fff;
}
.admin-table .btn-primary:hover {
    background: var(--e-global-color-24e3523);
}
.admin-table .btn-danger {
    background: #e74c3c;
    color: #fff;
}
.admin-table .btn-danger:hover {
    background: #c0392b;
}
.admin-table .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.admin-table .badge-success {
    background: #d4edda;
    color: #155724;
}
.admin-table .badge-warning {
    background: #fff3cd;
    color: #856404;
}
.admin-table code {
    background: #f4f7fc;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--e-global-color-9fb0033);
}

/* ===== RESPONSIVIDADE DA TABELA ===== */
@media (max-width: 768px) {
    .admin-table {
        font-size: 0.8rem;
        min-width: 500px;
    }
    .admin-table th,
    .admin-table td {
        padding: 6px 8px;
    }
    .admin-table .btn-sm {
        padding: 2px 6px;
        font-size: 0.65rem;
        min-width: 28px;
        min-height: 28px;
    }
    .admin-table .btn-sm i {
        font-size: 0.7rem;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .page-header h1 {
        font-size: 1.4rem;
    }
}

/* ===== SCROLL HORIZONTAL PARA TABELAS EM MOBILE ===== */
@media (max-width: 600px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive .admin-table {
        min-width: 600px;
    }
}

.admin-footer {
    margin-top: 0;
    padding: 20px 0;
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}
