/* Configurações Globais e Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #fafbfc;
    color: #1e293b;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navegação */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 80px;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #d97706;
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-login {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.btn-login:hover {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-client {
    background: #10b981;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-client:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 100px 80px;
    max-width: 1350px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

/* Container do Título Dinâmico */
.dynamic-wrapper-container {
    display: inline-block;
    position: relative;
    color: #d97706;
    vertical-align: top;
    min-width: 180px;
}

.sizer {
    visibility: hidden;
    white-space: nowrap;
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
}

.dynamic-text-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #d97706;
    white-space: nowrap;
}

.hero-content p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.4);
}

/* Mockup Visual / Painel na Hero */
.hero-mockup {
    background: #0f172a;
    border-radius: 24px;
    padding: 35px;
    color: white;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
}

.mockup-dot:nth-child(2) {
    background: #f59e0b;
}

.mockup-dot:nth-child(3) {
    background: #10b981;
}

.mockup-badge {
    background: rgba(217, 119, 6, 0.2);
    color: #f59e0b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mockup-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #d97706;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: transform 0.2s ease;
}

.mockup-card:hover {
    transform: translateX(4px);
    background: rgba(30, 41, 59, 0.9);
}

.mockup-time {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.mockup-client {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 4px;
}

/* Seção de Recursos (Features) */
.features {
    padding: 80px 80px;
    max-width: 1350px;
    margin: 0 auto;
}

.features h2 {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Rodapé Profissional Alinhado */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 80px 30px 80px;
    margin-top: 100px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin-top: 10px;
    max-width: 300px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Responsividade Mobile */
@media (max-width: 968px) {
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 20px;
    }

    .header-buttons {
        gap: 8px;
    }

    .btn-login, .btn-client {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 30px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.3;
    }
    
    .dynamic-wrapper-container {
        display: block;
        margin-top: 5px;
    }

    .features {
        padding: 60px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        padding: 60px 20px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Estilos Específicos do Painel Administrativo / Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #0f172a;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.5px;
}

.login-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.login-card input:focus {
    outline: none;
    border-color: #d97706;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.login-card button,
.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.login-card button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

/* --- ESTILOS DO PAINEL MASTER (ADMIN) --- */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
    font-family: Arial, sans-serif;
}

.sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.sidebar-top h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 5px;
}

.sidebar a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: background 0.2s, color 0.2s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #34495e;
    color: #fff;
}

.sidebar .btn-logout {
    color: #e74c3c;
    font-weight: bold;
}
.sidebar .btn-logout:hover {
    background-color: #c0392b;
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.main-content h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.main-content p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

/* Formulários e Alertas */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button[type="submit"], .btn-acao {
    padding: 8px 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

/* Tabelas e Controles */
.table-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table th {
    background-color: #f8f9fa;
    color: #333;
}

/* Botões de Ação na Tabela */
.btn-editar {
    background-color: #f39c12;
}
.btn-editar:hover {
    background-color: #d68910;
}

.btn-excluir {
    background-color: #e74c3c;
}
.btn-excluir:hover {
    background-color: #c0392b;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.pagination-links a, .pagination-links span {
    padding: 6px 10px;
    border: 1px solid #ddd;
    margin-left: 3px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.pagination-links .current {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Modal de Edição */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Restaura o brilho dourado legítimo do ícone de raio no rodapé e no header */
header .logo .fa-bolt,
footer .logo .fa-bolt {
    color: #f39c12 !important;
    filter: drop-shadow(0 0 6px rgba(243, 156, 18, 0.6));
}

/* Layout Principal do Painel */
.painel-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Flexível e Fixa à Esquerda */
.sidebar {
    width: 260px;
    background-color: #1e293b;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.sidebar-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-loja-info {
    padding: 15px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.sidebar-menu li.active a, 
.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    color: #f87171;
    text-decoration: none;
}

.btn-logout i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Conteúdo Principal */
.main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f8f9fa;
    overflow-x: auto;
}