* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ddaf28;
    --secondary: #ddaf28;
    --dark-900: #000000;
    --dark-800: #1a1a1a;
    --dark-700: #2d2d2d;
    --dark-600: #404040;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-light: #ffffff;
    --text-muted: #cccccc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-900);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Gradientes */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-card {
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 100%);
    border: 1px solid var(--primary);
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-image: url('https://i.imgur.com/zIKYEEx_d.webp?maxwidth=760&fidelity=grand');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--text-light);
    background: var(--dark-700);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

/* Cards */
.card {
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-600);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.card-body {
    color: var(--text-muted);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Formulários */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-700);
    border: 1px solid var(--dark-600);
    border-radius: 8px;
    color: var(--text-light);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-700);
    border: 1px solid var(--dark-600);
    border-radius: 8px;
    color: var(--text-light);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: black;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--dark-600);
    color: var(--text-light);
    border: 1px solid var(--dark-500);
}

.btn-secondary:hover {
    background: var(--dark-500);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--dark-600);
}

.table th {
    background: var(--dark-700);
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: rgba(71, 85, 105, 0.3);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* Progresso */
.progress {
    width: 100%;
    height: 12px;
    background: var(--dark-600);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.5s ease;
}

.progress-bar.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 100%);
}

.progress-bar.danger {
    background: linear-gradient(135deg, #f97316 0%, var(--danger) 100%);
}

/* Estatísticas */
.stat-card {
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 100%);
    border: 1px solid var(--dark-600);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.stat-icon.danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* IP Display */
.user-ip-display {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.2);
    animation: fadeInSlide 1s ease-out;
}

.user-ip-display i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-900);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(3rem);
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(3rem);
}

.login-card {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.1);
    animation: slideInUp 0.8s ease-out;
    transform-origin: center bottom;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    background-image: url('https://i.imgur.com/zIKYEEx_d.webp?maxwidth=760&fidelity=grand');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}


.login-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        padding: 1rem;
    }
    
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* Sidebar Admin */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--dark-800);
    border-right: 2px solid var(--primary);
    padding: 2rem;
    position: relative;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary);
    color: white;
}

.main-content {
    flex: 1;
    background: var(--dark-900);
}

.main-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 1.5rem 2rem;
}

.main-body {
    padding: 2rem;
}

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Animações */
@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(217, 119, 6, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(217, 119, 6, 0.4), 0 0 30px rgba(217, 119, 6, 0.1);
    }
}

/* Aplicar animações extras aos elementos de login */
.login-header h1 {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.login-header p {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.form-group {
    animation: slideInUp 0.6s ease-out 0.6s both;
}

.btn-primary {
    animation: slideInUp 0.6s ease-out 0.8s both, glow 3s ease-in-out infinite;
}

.login-card:hover {
    animation: slideInUp 0.8s ease-out, floating 3s ease-in-out infinite;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid;
    animation: slideInUp 0.5s ease-out;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 44px 15px rgba(245, 158, 11, 0.1);
}


