@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Cores do Tema Claro (Padrão) */
    --primary-color: #D2691E;
    --primary-dark: #A0522D;
    --primary-light: #F4A460;
    --secondary-color: #FFD700;
    --bg-color: #FFF8DC;
    --card-bg: white;
    --card-border: #FFF8DC;
    --text-dark: #5D4037;
    --text-light: #8D6E63;
    --input-bg: #FFFBF2;
    --input-border: #F3E5F5;
    --header-border: #f0f0f0;
    --stat-card-border: #FFF8DC;
    --chart-card-bg: #fafafa;
    --chart-card-border: #f0f0f0;
    --history-item-bg: white;
    --history-border: #f5f5f5;
    --success: #66BB6A;
    --error: #EF5350;
    --shadow: 0 10px 30px rgba(210, 105, 30, 0.1);
    --shadow-hover: 0 15px 45px rgba(210, 105, 30, 0.2);
    --gradient: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
}

/* Tema Modo Escuro */
body.dark-mode {
    --bg-color: #1a0f0a;
    /* Marrom quase preto */
    --card-bg: #2d1b14;
    /* Marrom escuro */
    --card-border: #3d2b24;
    --text-dark: #f5e6d3;
    /* Bege claro */
    --text-light: #bcaaa4;
    --input-bg: #3d2b24;
    --input-border: #4e342e;
    --header-border: #3d2b24;
    --stat-card-border: #4e342e;
    --chart-card-bg: #251610;
    --chart-card-border: #3d2b24;
    --history-item-bg: #2d1b14;
    --history-border: #3d2b24;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.7);
}

.btn-theme-fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-theme-fixed:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: white;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D2691E 0%, #A0522D 100%);
    padding: 2rem;
}

.login-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.login-card h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 3px solid var(--input-border);
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--input-bg);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 3.5rem !important;
}

.btn-toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn-toggle-password:hover {
    transform: scale(1.2);
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.back-link,
.forgot-link {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover,
.forgot-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 64, 55, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 2.5rem;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--primary-color);
}

.instruction-box {
    background: #FFF8DC;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    text-align: left;
    border-left: 5px solid var(--primary-color);
}

.instruction-box ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.instruction-box li {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.error-message {
    color: var(--error);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Dashboard Screen */
.dashboard-screen {
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Alinha no topo para evitar quebras */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--header-border);
    flex-wrap: wrap;
    /* Permite quebrar no celular */
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-back-site {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.dashboard-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.btn-logout {
    padding: 0.6rem 1.5rem;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-logout:hover {
    background: #EF5350;
    color: white;
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    /* Reduzido de 2rem */
    border-radius: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Reduzido de 1.5rem */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid var(--stat-card-border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 2.2rem;
    /* Reduzido de 3rem */
    width: 60px;
    /* Reduzido de 70px */
    height: 60px;
    /* Reduzido de 70px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #D2691E 0%, #F4A460 100%);
    border-radius: 15px;
    flex-shrink: 0;
    /* Impede o ícone de ser esmagado */
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Section */
.dashboard-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Notification Form */
.notification-form {
    max-width: 600px;
}

/* Botões de Ação no Formulário */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.btn-send,
.btn-save-alt,
.btn-save {
    height: 60px;
    border-radius: 15px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0 25px;
    font-size: 1rem;
    white-space: nowrap;
}

/* Centralização interna de ícone e texto */
.btn-send span,
.btn-save-alt span,
.btn-save span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-send,
.btn-save {
    flex: 2;
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(210, 105, 30, 0.2);
}

.btn-send:hover,
.btn-save:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(210, 105, 30, 0.3);
}

.btn-save-alt {
    flex: 1;
    min-width: 240px;
    background: #f0fdf4;
    color: #166534;
    border: 3px solid #bbfcce !important;
}

.btn-save-alt:hover {
    background: #dcfce7;
    border-color: #86efac !important;
    transform: translateY(-3px);
}

.btn-send:disabled,
.btn-save-alt:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsividade: Empilhar no Celular */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-send,
    .btn-save-alt,
    .btn-save {
        width: 100%;
        flex: none;
        height: 55px;
    }
}

/* Ajuste Responsivo para os botões */
@media (max-width: 600px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-send,
    .btn-save-alt,
    .btn-save {
        width: 100%;
        flex: none;
    }
}

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

.section-header h2 {
    margin-bottom: 0;
}

.btn-clear-history {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-clear-history:hover {
    background: #fecaca;
    transform: scale(1.05);
}

.btn-clear-history:active {
    transform: scale(0.95);
}

.form-tip {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn-send:disabled,
.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.status-message:empty {
    display: none;
}

.status-message.success {
    background: rgba(102, 187, 106, 0.15);
    color: var(--success);
}

.status-message.error {
    background: rgba(239, 83, 80, 0.15);
    color: var(--error);
}

/* Schedules Manager */
.schedules-manager {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px 40px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--chart-card-bg);
    border-radius: 10px;
    border: 2px solid var(--chart-card-border);
}

.btn-remove-schedule {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-remove-schedule:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.schedule-item input[type="time"],
.schedule-item input[type="text"] {
    padding: 0.6rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.schedule-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* History List */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 1rem;
    background: var(--history-item-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid var(--history-border);
    border-right: 1px solid var(--history-border);
    border-bottom: 1px solid var(--history-border);
}

.history-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.history-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.history-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.history-record {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.history-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-success {
    color: var(--success);
    font-weight: 600;
}

.history-fail {
    color: var(--error);
    font-weight: 600;
}

/* WhatsApp Contacts Table */
.contacts-list-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
}

.contacts-table th {
    background: var(--primary-color);
    color: white;
    text-align: left;
    padding: 1rem;
}

.contacts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--history-border);
    color: var(--text-dark);
}

.btn-delete-small {
    background: #FFEBEE;
    color: #C62828;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-small:hover {
    background: #C62828;
    color: white;
    transform: scale(1.1);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-screen {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        grid-template-columns: 1fr;
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(210, 105, 30, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Product Management Styles */
.admin-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 3px solid var(--card-border);
    animation: slideUp 0.4s ease-out;
}

.upload-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    margin-top: 10px;
    cursor: pointer;
}

#prodImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.image-preview {
    width: 100%;
    min-height: 200px;
    border: 3px dashed #ddd;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    color: #666;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    padding: 15px;
    margin-top: 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

#promoImage {
    position: relative;
    opacity: 1;
    z-index: 1;
    margin-bottom: 10px;
}

.upload-wrapper:hover .image-preview {
    border-color: var(--primary-color);
    background: #fffaf5;
}

.btn-add {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #bbfcce;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #bbfcce;
    transform: scale(1.05);
}

.btn-cancel {
    flex: 1;
    height: 60px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
}

.admin-products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    /* Sempre 1 coluna por padrão */
    gap: 1.5rem !important;
    margin-top: 1.5rem;
    padding: 0 !important;
    /* Removido padding lateral */
    width: 100% !important;
    box-sizing: border-box;
    justify-items: stretch;
    /* Garante que os itens estiquem */
}

/* Em telas muito largas, podemos ter 2 colunas para produtos normais, 
   mas promoções devem continuar grandes */
@media (min-width: 1200px) {
    #adminProductsList {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Tablets e Desktop - múltiplas colunas apenas quando há espaço */
@media (min-width: 768px) {
    .admin-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 2rem !important;
    }
}

@media (min-width: 1200px) {
    .admin-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
    }
}

.admin-product-card {
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border: 4px solid var(--primary-color) !important;
    transition: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto;
    min-height: 300px;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    /* Aumentado de 250px */
    visibility: visible !important;
    opacity: 1 !important;
}

.admin-product-card:hover {
    border-color: var(--primary-color);
}

.admin-product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.admin-product-info {
    padding: 1.2rem;
}

.admin-product-info h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.admin-product-info p {
    font-size: 0.9rem;
    color: #666;
    height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.admin-product-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
    width: 100%;
    margin-top: auto;
}

/* Garante que os botões caibam em telas menores */
@media (max-width: 480px) {
    .admin-product-actions {
        padding: 8px;
        gap: 5px;
    }

    .btn-edit,
    .btn-delete {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}

.btn-edit,
.btn-delete {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-edit {
    background: #eff6ff;
    color: #1e40af;
}

.btn-delete {
    background: #fef2f2;
    color: #991b1b;
}

.btn-edit:hover {
    background: #dbeafe;
}

.btn-delete:hover {
    background: #fee2e2;
}

/* ============= CHARTS SECTION ============= */
.charts-section {
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduzido de 350px para caber no celular */
    gap: 1rem;
}

.chart-card {
    background: #fafafa;
    padding: 1rem;
    /* Reduzido de 1.5rem para ganhar espaço */
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* Garante que nada saia da borda */
}

.chart-card h3 {
    font-size: 0.95rem;
    /* Levemente menor */
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.chart-card canvas {
    width: 100% !important;
    /* Força o canvas a respeitar a largura do card */
    max-height: 250px;
    height: auto !important;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Test Notification Button */
.btn-test {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    background: #f0f9ff;
    color: #0369a1;
    border: 2px dashed #7dd3fc;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-test:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.btn-test:active {
    transform: translateY(0);
}

/* Promoções - Card Inativo */
.admin-product-card.inactive {
    opacity: 0.6;
    background: #f5f5f5;
    border: 2px dashed #ccc;
}

.admin-product-card.inactive h3 {
    color: #999;
}

/* Botão Cancelar */
.btn-cancel {
    padding: 10px 20px;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Responsividade Extra para Celulares Pequenos */
@media (max-width: 400px) {
    .dashboard-screen {
        padding: 0.8rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }
}

/* Estilos para o Card de Promoção v3.1 */
.promo-card-image {
    width: 100%;
    background: #fdf5ef;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.promo-card-img {
    width: 100%;
    max-height: 500px;
    /* Aumentado de 250px para banners verticais */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.promo-pdf-icon {
    font-size: 64px;
    padding: 30px;
}

.promo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.version-badge {
    background: #D2691E;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.promo-card-description {
    padding: 20px;
}

.promo-desc-main {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.promo-message {
    margin-top: 10px;
    padding: 10px;
    background: #fffcf0;
    border-left: 4px solid #D2691E;
    font-style: italic;
    color: #555;
}

.btn-promo-action {
    padding: 15px 5px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

.btn-notify-clients {
    flex: 100% !important;
    margin-top: 5px;
    background: #D2691E !important;
    color: white !important;
    border: none !important;
    padding: 15px !important;
    font-weight: bold;
    font-size: 1rem !important;
    border-radius: 10px;
    cursor: pointer;
}