/* Golden Dados - Tema Dark Premium */

:root {
    /* Paleta Dark Premium */
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --dark-blue: #0d1b2a;
    --golden: #f4c430;
    --golden-dark: #d4a017;
    --golden-light: #ffd95a;
    --tech-blue: #00d9ff;
    --tech-purple: #9d4edd;
    --text-light: #e0e0e0;
    --text-secondary: #b0b0b0;
    --gradient-gold: linear-gradient(135deg, #f4c430 0%, #d4a017 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --shadow-gold: 0 4px 20px rgba(244, 196, 48, 0.3);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(244, 196, 48, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

/* Navbar Premium */
.navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 196, 48, 0.1);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(244, 196, 48, 0.3));
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 20px rgba(244, 196, 48, 0.6));
    transform: scale(1.05);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--golden) !important;
}

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

/* Hero Section Premium */
.hero {
    background: var(--gradient-dark);
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(244, 196, 48, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(244, 196, 48, 0.3);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons Premium */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark) !important;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(244, 196, 48, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--golden);
    color: var(--golden) !important;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-gold);
    color: var(--primary-dark) !important;
    border-color: transparent;
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Cards Premium - Compactos */
.card {
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 196, 48, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover::before {
    opacity: 0.05;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--golden);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.2);
}

.card-body {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.card-title {
    color: var(--golden-light);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-img-top {
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid rgba(244, 196, 48, 0.2);
}

.card-footer {
    background: rgba(10, 14, 39, 0.7);
    border-top: 1px solid rgba(244, 196, 48, 0.1);
    padding: 0.6rem 1rem;
}

.card-header {
    background: rgba(10, 14, 39, 0.7);
    border-bottom: 1px solid rgba(244, 196, 48, 0.1);
    color: var(--golden-light);
    padding: 0.65rem 1rem;
}

/* Fix para textos dentro dos cards */
.card .text-muted,
.card small.text-muted {
    color: var(--text-secondary) !important;
}

.card .text-secondary {
    color: var(--text-secondary) !important;
}

/* Badges Premium - Compactos */
.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    border-radius: 15px;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
}

.bg-primary {
    background: var(--gradient-gold) !important;
    color: var(--primary-dark) !important;
}

.bg-secondary {
    background: rgba(176, 176, 176, 0.2) !important;
    color: var(--text-light) !important;
    border: 1px solid rgba(176, 176, 176, 0.3);
}

.bg-info {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffd95a 0%, #d4a017 100%) !important;
    color: var(--primary-dark) !important;
}

/* Section Titles */
h1, h2, h3, h4, h5, h6 {
    color: var(--golden-light);
    font-weight: 700;
}

h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Section Backgrounds */
section {
    padding: 4rem 0;
    position: relative;
}

.bg-light {
    background: rgba(26, 31, 58, 0.3) !important;
    backdrop-filter: blur(5px);
}

/* Footer Premium */
footer {
    background: var(--secondary-dark) !important;
    border-top: 2px solid rgba(244, 196, 48, 0.2);
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
}

footer h5 {
    color: var(--golden);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

footer a:hover {
    color: var(--golden);
    padding-left: 10px;
}

footer hr {
    border-color: rgba(244, 196, 48, 0.2) !important;
    opacity: 1;
}

/* WhatsApp Float Button Premium */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1fa851 100%);
    color: #FFF;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: pulse-whatsapp 2s infinite;
    z-index: -1;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Alerts Premium */
.alert {
    border-radius: 12px;
    border: 1px solid;
    backdrop-filter: blur(10px);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

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

.alert-warning {
    background: rgba(244, 196, 48, 0.1);
    border-color: rgba(244, 196, 48, 0.3);
    color: var(--golden);
}

.alert-info {
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    color: var(--tech-blue);
}

/* Forms Premium */
.form-control, .form-select {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(244, 196, 48, 0.2);
    color: var(--text-light) !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(26, 31, 58, 0.95);
    border-color: var(--golden);
    color: var(--text-light) !important;
    box-shadow: 0 0 0 0.2rem rgba(244, 196, 48, 0.25);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

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

.form-check-label {
    color: var(--text-light);
}

.form-check-input {
    background-color: rgba(26, 31, 58, 0.8);
    border-color: rgba(244, 196, 48, 0.3);
}

.form-check-input:checked {
    background-color: var(--golden);
    border-color: var(--golden);
}

/* Tables Premium */
.table {
    color: var(--text-light);
}

.table thead th {
    background: rgba(26, 31, 58, 0.8);
    color: var(--golden);
    border-color: rgba(244, 196, 48, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-color: rgba(244, 196, 48, 0.1);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(244, 196, 48, 0.05);
}

.table tbody td {
    border-color: rgba(244, 196, 48, 0.1);
}

/* Pagination */
.pagination .page-link {
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(244, 196, 48, 0.2);
    color: var(--text-light);
    margin: 0 0.25rem;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background: var(--gradient-gold);
    border-color: var(--golden);
    color: var(--primary-dark);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-gold);
    border-color: var(--golden);
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #1a1f3a 4%, #2a3050 25%, #1a1f3a 36%);
    background-size: 1000px 100%;
}

/* Tech Accents */
.tech-line {
    height: 2px;
    background: var(--gradient-gold);
    margin: 2rem 0;
    border-radius: 2px;
}

.tech-box {
    border: 1px solid rgba(244, 196, 48, 0.2);
    border-radius: 12px;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.5);
    backdrop-filter: blur(10px);
}

/* Glowing Effects */
.glow {
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.5);
}

.text-glow {
    text-shadow: 0 0 10px rgba(244, 196, 48, 0.5);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--golden-dark);
}

/* Collapsible Filter Panel */
.filter-collapse-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.filter-collapse-btn:hover {
    background: rgba(244, 196, 48, 0.05) !important;
}

.filter-collapse-btn i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.filter-collapse-btn.collapsed i.fa-chevron-down {
    transform: rotate(-180deg);
}

.filter-collapse-btn:not(.collapsed) i.fa-chevron-down {
    transform: rotate(0deg);
}

/* Garantir legibilidade em todos os textos */
body, p, span, div, label, a {
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--golden-light);
}

.text-muted {
    color: var(--text-secondary) !important;
}

small {
    color: var(--text-secondary);
}
