/* css/style.css */

/* --- DESIGN SYSTEM & VARIÁVEIS --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores padrão - serão sobrescritas dinamicamente pelo tema configurado */
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-secondary: #0EA5E9;
    --color-background: #F8FAFC;
    --color-card-bg: #FFFFFF;
    
    /* Cores do sistema constantes */
    --color-text-main: #0F172A; /* Slate 900 */
    --color-text-muted: #64748B; /* Slate 500 */
    --color-border: #E2E8F0; /* Slate 200 */
    --color-success: #10B981; /* Emerald 500 */
    --color-warning: #F59E0B; /* Amber 500 */
    --color-danger: #EF4444; /* Red 500 */
    
    /* Fontes e Tipografia */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Efeitos */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(79 70 229 / 0.1), 0 8px 10px -6px rgb(79 70 229 / 0.05);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & ESTRUTURA GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* --- ESTILOS COMPARTILHADOS: BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.03);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #FFFFFF;
}

.btn-danger:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    aspect-ratio: 1;
}

/* --- ESTILOS COMPARTILHADOS: CABEÇALHO (NAVBAR) --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-logo-container {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.brand-logo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
    background: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 80px 24px 100px 24px;
    background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-text-main) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* --- BARRA DE BUSCA E FILTROS --- */
.search-wrapper {
    max-width: 900px;
    margin: -40px auto 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.search-container {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border: 1px solid var(--color-border);
}

.search-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.search-tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 6px 16px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.search-tab-btn.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
}

.search-fields-grid {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 1.5fr 1fr;
    gap: 16px;
    align-items: end;
}

@media (max-width: 900px) {
    .search-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
    .search-fields-grid .search-btn-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
    .search-fields-grid .search-btn-col {
        grid-column: span 1;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.input-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-muted);
}

.input-group select, .input-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border);
    background-color: var(--color-background);
    color: var(--color-text-main);
    transition: border-color var(--transition-fast);
}

.input-group select:focus, .input-group input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* --- GRADE DE IMÓVEIS (PORTAL) --- */
.section-properties {
    max-width: 1200px;
    margin: 60px auto 100px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.properties-count {
    color: var(--color-text-muted);
    font-weight: 500;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CARD DE IMÓVEL --- */
.property-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #E2E8F0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.property-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.badge-type {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.badge-venda {
    background-color: var(--color-primary);
}

.badge-aluguel {
    background-color: var(--color-secondary);
}

.badge-tag {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 4px 10px;
    background-color: rgba(15, 23, 42, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-location {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-features {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.feature-item svg {
    color: var(--color-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price-label {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.card-price-val {
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

/* --- DETALHE DO IMÓVEL (imovel.html) --- */
.detail-container {
    max-width: 1200px;
    margin: 40px auto 100px auto;
    padding: 0 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 450px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        height: 300px;
    }
    .gallery-grid img:nth-child(2) {
        display: none;
    }
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-header-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-tags span {
    padding: 4px 12px;
    background-color: var(--color-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.detail-title {
    font-size: 32px;
    letter-spacing: -1px;
}

.detail-location-full {
    font-size: 15px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-features-full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    text-align: center;
}

@media (max-width: 480px) {
    .detail-features-full {
        grid-template-columns: 1fr 1fr;
    }
}

.feat-full-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feat-full-item span:first-child {
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

.feat-full-item span:last-child {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.detail-description-block h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.detail-description-block p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.detail-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background-color: rgba(79, 70, 229, 0.04);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.price-main .price-val {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

.price-fees {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* --- WIDGET DE AGENDAMENTO (CALENDÁRIO) --- */
.schedule-widget {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.schedule-widget h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.schedule-calendar-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.day-btn {
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
    padding: 10px 4px;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.day-btn:hover {
    border-color: var(--color-primary);
}

.day-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.day-btn span:first-child {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.day-btn span:last-child {
    font-size: 16px;
    font-weight: 800;
}

.schedule-hours-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.schedule-hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.hour-btn {
    border: 1px solid var(--color-border);
    background-color: var(--color-card-bg);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hour-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hour-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* --- MODAL DE AGENDAMENTO --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    padding: 32px;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- PAINEL ADMINISTRATIVO (admin.html) --- */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 75px);
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.admin-sidebar {
    background-color: var(--color-card-bg);
    border-right: 1px solid var(--color-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-muted);
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: all var(--transition-fast);
}

.sidebar-btn:hover {
    color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.03);
}

.sidebar-btn.active {
    color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.08);
}

/* Área de Conteúdo */
.admin-content {
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px;
    }
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estatísticas (Cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.stat-info span:first-child {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-info span:last-child {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-main);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gráficos e Analytics */
.charts-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1000px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-wrapper {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-wrapper h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Tabelas */
.table-wrapper {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.responsive-table th, .responsive-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
}

.responsive-table th {
    background-color: var(--color-background);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 13px;
    text-transform: uppercase;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

.responsive-table tr:hover td {
    background-color: rgba(79, 70, 229, 0.01);
}

.status-pill {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.status-confirmado {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-pendente {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.status-cancelado {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.status-reagendado {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--color-secondary);
}

/* Customização White-Label Form */
.custom-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .custom-layout-grid {
        grid-template-columns: 1fr;
    }
}

.theme-preview-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    background-color: var(--color-background);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
}

.theme-preview-hero {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    text-align: center;
}

.color-pickers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: var(--color-background);
}

.color-input-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--color-border);
    border-radius: 50%;
}

.color-details {
    display: flex;
    flex-direction: column;
}

.color-details span:first-child {
    font-weight: 600;
    font-size: 13px;
}

.color-details span:last-child {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Alertas estilo GitHub */
.alert {
    padding: 16px 20px;
    border-left: 4px solid;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.05);
    border-left-color: var(--color-success);
    color: var(--color-success);
}

/* --- ESTILOS DO CARD SABER MAIS & GESTÃO --- */
.saber-mais-card {
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.saber-mais-header {
    margin-bottom: 20px;
}

.saber-mais-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

.saber-mais-header p {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.radio-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.radio-pill-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    text-align: center;
}

.radio-pill-input {
    display: none;
}

.radio-pill-input:checked + .radio-pill-label {
    border-color: var(--color-primary);
    background-color: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
}

.badge-pending-count {
    background-color: #EF4444;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
}

/* --- ADICIONAL: MELHORIAS DE RESPONSIVIDADE MOBILE --- */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 16px;
    }
    
    .hero {
        padding: 50px 16px 70px 16px;
    }
    
    .hero h1 {
        font-size: 32px !important;
        letter-spacing: -0.5px;
        line-height: 1.25;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .modal-content {
        padding: 24px 16px !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
    }
}

