/* ============================================
   Ryakeza - Sistema de Faturação
   Main Stylesheet
   ============================================ */

/* Root Variables */
:root {
    --primary-dark: #1a2a4e;
    --primary-light: #2d3e5f;
    --accent-gold: #D4AF37;
    --accent-gold-dark: #b8941f;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Global Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    font-size: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold-dark);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background-color: var(--primary-dark) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--accent-gold) !important;
    font-weight: 700;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

.btn-gold {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.text-gold {
    color: var(--accent-gold);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   Feature Cards
   ============================================ */

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
}

.feature-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
}

/* ============================================
   Section Titles
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
}

/* ============================================
   Login Page
   ============================================ */

.login-page {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    min-height: 100vh;
}

.login-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

.login-card {
    background: var(--bg-white);
    border: none;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-light);
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.nav-tabs .nav-link.active {
    color: var(--accent-gold);
    background-color: transparent;
    border-bottom-color: var(--accent-gold);
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-info {
    background: var(--bg-light);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   Accordion
   ============================================ */

.accordion-button {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ============================================
   Legal Content
   ============================================ */

.legal-content {
    line-height: 1.8;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.legal-content p {
    text-align: justify;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   Demo Page
   ============================================ */

.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

#invoicesTable {
    font-size: 0.95rem;
}

#invoicesTable thead {
    background-color: var(--bg-light);
}

#invoicesTable tbody tr {
    transition: all 0.2s ease;
}

#invoicesTable tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin: 0 0.2rem;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-info:hover {
    background-color: #31d5f8;
    border-color: #31d5f8;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background-color: #198754;
}

.badge-warning {
    background-color: #ffc107;
    color: var(--text-dark);
}

.badge-danger {
    background-color: #dc3545;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

footer h6 {
    color: var(--accent-gold);
    font-size: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-dark {
    background-color: var(--primary-dark);
}

.btn-dark:hover {
    background-color: var(--primary-light);
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border: none;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-left-color: #0dcaf0;
    color: #084298;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-left-color: #198754;
    color: #0f5132;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #664d03;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #842029;
}

/* ============================================
   Animations
   ============================================ */

[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .login-card {
        margin: 1rem;
    }

    .map-container {
        height: 300px;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .feature-card,
    .feature-box,
    .contact-info {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 40px;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .legal-content h3 {
        font-size: 1.25rem;
    }

    .legal-content p {
        font-size: 0.95rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    footer,
    .btn,
    .modal {
        display: none !important;
    }

    body {
        background-color: white;
    }

    .page-header {
        background: none;
        color: black;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
    }

    p {
        color: black;
    }
}
/* ============================================
   Ryakeza - Sistema de Faturação
   Main Stylesheet - CORRIGIDO
   ============================================ */

/* Root Variables */
:root {
    --primary-dark: #1a2a4e;
    --primary-light: #2d3e5f;
    --accent-gold: #D4AF37;
    --accent-gold-dark: #b8941f;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --container-padding: 1rem;
}

/* ============================================
   Global Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   Container Consistency Fix
   ============================================ */

/* Forçar consistência nos containers */
.navbar .container-fluid,
footer .container,
main .container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Ajuste específico para navbar */
.navbar .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   Navigation - CORRIGIDO
   ============================================ */

.navbar {
    background-color: var(--primary-dark) !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--container-padding);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--accent-gold) !important;
    font-weight: 700;
    margin: 0;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

.btn-gold {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.btn-gold:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Main Content Area
   ============================================ */

main {
    flex: 1;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.text-gold {
    color: var(--accent-gold);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   Feature Cards
   ============================================ */

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
}

/* ============================================
   Section Titles
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* ============================================
   Footer - CORRIGIDO
   ============================================ */

footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
    width: 100%;
}

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

footer h6 {
    color: var(--accent-gold);
    font-size: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-outline-light:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .navbar .container-fluid {
        flex-wrap: wrap;
    }

    .navbar-nav {
        width: 100%;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    .btn-gold {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 40px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

/* ============================================
  Novas
   ============================================ */
