:root {
    --primary-color: #0d6efd;
    --secondary-color: #20c997;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --warning-color: #ffc107;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}

.brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

.brand-color {
    color: var(--primary-color);
}

.brand-bg {
    background-color: var(--primary-color);
}

.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(32, 201, 151, 0.8)), url('https://images.unsplash.com/photo-1542744095-fcf48d80b0fd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
}

.center-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.feature-card {
    border: 2px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #c5c9d0;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 3px dashed #ddd;
    border-radius: 15px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.upload-area.dragover {
    border-color: var(--secondary-color);
    background-color: #e8f7f2;
}

.invoice-preview {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.result-card {
    border-left: 5px solid var(--success-color);
    background-color: #f8fff9;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 1.5rem;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-color: #c5c9d0;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-link {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.btn-custom-success {
    background-color: var(--success-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-success:hover {
    background-color: #157347;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.2);
}

.progress-bar-custom {
    background-color: var(--secondary-color);
}

.spinner-container {
    display: none;
}

.text-justify-indent {
    text-align: justify;
    text-indent: 2rem;
    margin: 0.5rem 0 1rem;
}

.btn-text-full {
    display: inline;
}

.btn-text-short {
    display: none;
}

@media (max-width: 991.98px) {
    .hero-section .btn-custom {
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .btn-text-full {
        display: none;
    }
    .btn-text-short {
        display: inline;
    }
}

@media (max-width: 400px) {
    .navbar .brand-logo {
        display: none;
    }
    .navbar-toggler {
        margin-left: 0.5rem;
    }
    .hero-section {
        padding-top: 60px;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #0b5ed7;
    text-decoration: underline;
}

.navbar-nav .nav-link.active {
    color: #0a58ca;
    text-decoration: underline;
}

.nav-link-cta {
    background-color: var(--primary-color);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.2);
}

.nav-link-cta:hover,
.nav-link-cta:focus {
    background-color: #0b5ed7;
    color: #fff !important;
    text-decoration: none;
}

.contact-search-results {
    max-height: 220px;
    overflow-y: auto;
    z-index: 5;
}

.admin-shortcut-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    border: 1px solid rgba(13, 110, 253, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.admin-shortcut-btn:hover,
.admin-shortcut-btn:focus {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

.admin-shortcut-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-shortcut-label {
    font-weight: 600;
    letter-spacing: 0.01em;
    display: none;
}

@media (min-width: 768px) {
    .admin-shortcut-btn:hover .admin-shortcut-label,
    .admin-shortcut-btn:focus .admin-shortcut-label {
        display: inline;
    }
}

@media (max-width: 767.98px) {
    .admin-shortcut-btn {
        padding: 10px;
        right: 12px;
        bottom: 12px;
    }
}

section {
    scroll-margin-top: 90px;
}

#processar {
    background-color: #d1d5db;
}

.footer-narrow {
    max-width: 960px;
    margin: 0 auto;
}
