:root {
    --primary-color: #ff6b00;
    --secondary-color: #ff9500;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --gradient-1: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(255, 107, 0, 0.2);
}

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

.navbar-brand i {
    color: var(--primary-color);
    animation: flame 2s infinite;
}

@keyframes flame {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-light) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.btn-gradient {
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .cta-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

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

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* Product Cards */
.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.3);
    border-color: var(--primary-color);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    color: var(--text-muted);
}

.product-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.badge-category {
    background: var(--gradient-1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: rgba(255, 107, 0, 0.05);
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light) !important;
}

.stat-card p {
    color: var(--text-muted) !important;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
}

.stat-card .counter {
    color: var(--text-light) !important;
}

/* Dashboard */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.dashboard-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.dashboard-card h4,
.dashboard-card h5,
.dashboard-card h6 {
    color: var(--text-light);
}

.dashboard-card p {
    color: var(--text-muted);
}

.dashboard-card a {
    text-decoration: none;
}

.dashboard-card a:hover h4 {
    color: var(--primary-color);
}

/* Tabelas Modernas com Tema Escuro */
.table-responsive {
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
}

table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-light) !important;
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
}

table.table {
    background: transparent !important;
}

table.table thead,
table.table tbody,
table.table tfoot {
    background: transparent !important;
}

table thead {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 149, 0, 0.15) 100%) !important;
}

table thead th {
    background: transparent !important;
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.2rem 1rem;
    border: none !important;
    border-bottom: 2px solid rgba(255, 107, 0, 0.3) !important;
    white-space: nowrap;
}

table tbody {
    background: transparent !important;
}

table tbody tr {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: rgba(255, 107, 0, 0.08) !important;
    transform: translateX(5px);
    box-shadow: -5px 0 0 rgba(255, 107, 0, 0.5);
}

table tbody tr:last-child {
    border-bottom: none !important;
}

table tbody td {
    padding: 1.2rem 1rem;
    color: var(--text-light) !important;
    border: none !important;
    background: transparent !important;
    vertical-align: middle;
    font-size: 0.95rem;
}

table tbody td strong {
    color: var(--text-light);
    font-weight: 600;
}

table tbody td .text-muted {
    color: var(--text-muted) !important;
}

/* Badges de status */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-approved {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.status-pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.status-cancelled {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(211, 47, 47, 0.2) 100%);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Botões nas tabelas */
table .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

table .btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}

table .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

table .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    background: transparent;
}

table .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    table thead th,
    table tbody td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }
    
    table {
        font-size: 0.85rem;
    }
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
}

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}

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

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* ============================================================
   RESPONSIVIDADE MOBILE - OTIMIZADO
   ============================================================ */

/* Tablets e dispositivos médios */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stat-card {
        margin-bottom: 1.5rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }
}

/* Smartphones e dispositivos pequenos */
@media (max-width: 768px) {
    /* Navbar mobile */
    .navbar {
        padding: 0.5rem 0;
    }

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

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.98);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
    }

    .nav-link {
        padding: 0.8rem 0;
        margin: 0.3rem 0;
    }

    .btn-gradient {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Hero mobile */
    .hero {
        min-height: 80vh;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Product cards mobile */
    .product-card {
        margin-bottom: 2rem;
    }

    .product-card img {
        height: 180px;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-card .price {
        font-size: 1.5rem;
    }

    /* Stats section mobile */
    .stats-section {
        padding: 3rem 0;
    }

    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .stat-card i {
        font-size: 2rem;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    /* Dashboard mobile */
    .dashboard-card {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    /* Tabelas mobile */
    .table-responsive {
        border-radius: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    table thead th {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    table tbody td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    table .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Flash messages mobile */
    .flash-messages {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* Footer mobile */
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Forms mobile */
    .form-control, .form-select {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Buttons mobile */
    .btn-primary, .btn-outline-light {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Section titles mobile */
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* Carousel mobile */
    .carousel-item img {
        height: 250px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    /* Main content padding */
    main {
        padding-top: 70px;
    }

    /* Container padding mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Dispositivos muito pequenos (menos de 576px) */
@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand i {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

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

    .product-card img {
        height: 160px;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-card i {
        font-size: 1.8rem;
    }

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

    .dashboard-card {
        padding: 1rem;
    }

    .carousel-item img {
        height: 200px;
    }

    table {
        min-width: 500px;
        font-size: 0.8rem;
    }

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

/* Landscape mode em smartphones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .product-card:hover,
    .stat-card:hover,
    .dashboard-card:hover {
        transform: none;
    }

    table tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Page Content */
main {
    min-height: calc(100vh - 400px);
    padding-top: 80px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Garantir visibilidade de todos os textos */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
}

p {
    color: var(--text-muted);
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

/* Forçar visibilidade nos cards */
.card, .dashboard-card, .product-card, .stat-card {
    color: var(--text-light) !important;
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.dashboard-card h1, .dashboard-card h2, .dashboard-card h3, .dashboard-card h4, .dashboard-card h5, .dashboard-card h6,
.product-card h1, .product-card h2, .product-card h3, .product-card h4, .product-card h5, .product-card h6,
.stat-card h1, .stat-card h2, .stat-card h3, .stat-card h4, .stat-card h5, .stat-card h6 {
    color: var(--text-light) !important;
}

.card p, .dashboard-card p, .product-card p, .stat-card p {
    color: var(--text-muted) !important;
}

/* Garantir que textos nos stat-cards sejam SEMPRE visíveis */
.stat-card * {
    color: var(--text-light) !important;
}

.stat-card p.text-muted,
.stat-card .text-muted {
    color: var(--text-muted) !important;
}

/* Seção de features - garantir visibilidade */
.text-center h5 {
    color: var(--text-light) !important;
    font-weight: 600;
}

.text-center p {
    color: #cccccc !important;
    font-size: 0.95rem;
}

.text-center .text-muted {
    color: #cccccc !important;
}

/* Forçar visibilidade em TODOS os textos da página */
section h5 {
    color: var(--text-light) !important;
}

section p.text-muted,
section .text-muted {
    color: #cccccc !important;
}

/* Product Image Carousel Styles */
.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(255, 107, 0, 0.15);
}

.carousel-inner {
    border-radius: 15px;
}

.carousel-item img {
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-indicators {
    margin-bottom: 1.5rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 0, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 107, 0, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}
