:root {
    --bg-dark: #0a0e0c;
    --card-bg: #141a17;
    --metallic-green: linear-gradient(135deg, #004b23 0%, #008000 100%);
    --metallic-green-hover: linear-gradient(135deg, #006400 0%, #38b000 100%);
    --dark-lime: #38b000;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --border-color: #1f2924;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.6;
}

/* Scrollbar Customizada */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--darker-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-lime); }

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #004b23 0%, #0a0e0c 70%);
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
}

h1, h2, h3 {
    color: var(--dark-lime);
    margin-top: 0;
}

.btn-primary {
    background: var(--metallic-green);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--metallic-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 176, 0, 0.3);
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: #0d1310;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border-color);
    z-index: 100;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    background: var(--metallic-green);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: rgba(56, 176, 0, 0.1);
    color: var(--dark-lime);
    border-left: 4px solid var(--dark-lime);
}

.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--dark-lime);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #1a231f;
    padding: 15px 20px;
    text-align: left;
    color: var(--dark-lime);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

tr:hover td {
    background: rgba(255,255,255,0.02);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dim);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: #1a231f;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--dark-lime);
    box-shadow: 0 0 0 3px rgba(56, 176, 0, 0.2);
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.badge-edit { background: #219ebc; color: white; }
.badge-delete { background: #e63946; color: white; }
.badge-view { background: var(--dark-lime); color: white; }

/* MODELOS DE CARDS PREMIUM */
.card-preview {
    width: 400px;
    height: 550px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.card-photo-frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.2);
}

.card-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modelo 1: Dark Metalic Glow */
.model-premium-1 {
    background: linear-gradient(135deg, #002d16 0%, #004b23 100%);
    border: 2px solid #38b000;
}
.model-premium-1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 176, 0, 0.1) 0%, transparent 70%);
}

/* Modelo 2: Neon Lime Strips */
.model-premium-2 {
    background: #050806;
    border-top: 10px solid #38b000;
    border-bottom: 10px solid #38b000;
}
.model-premium-2 .bg-stripes {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(56, 176, 0, 0.05) 0, rgba(56, 176, 0, 0.05) 1px, transparent 0, transparent 50%);
    background-size: 20px 20px;
}

/* Modelo 3: Luxury Green Gold */
.model-premium-3 {
    background: radial-gradient(circle at top right, #008000, #002d16);
}
.model-premium-3::after {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Modelo 4: Abstract Geometric */
.model-premium-4 {
    background: #004b23;
}
.model-premium-4 .shape {
    position: absolute;
    background: rgba(56, 176, 0, 0.2);
    transform: rotate(45deg);
}

@media (max-width: 992px) {
    .sidebar { width: 80px; }
    .sidebar-header { font-size: 0.8rem; padding: 20px 5px; }
    .sidebar-menu li a span { display: none; }
    .main-content { margin-left: 80px; }
}
/* ============================================
   ALERTA PISCANTE PARA ANIVERSÁRIOS PRÓXIMOS
   ============================================ */

/* Badge com alerta */
.badge-alert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-alert.alert-soon {
    background: rgba(255, 202, 58, 0.15);
    color: #ffca3a;
    border: 1px solid rgba(255, 202, 58, 0.25);
}

.badge-alert.alert-critical {
    background: rgba(255, 89, 94, 0.15);
    color: #ff595e;
    border: 1px solid rgba(255, 89, 94, 0.25);
}

/* ANIMAÇÃO PISCANTE */
.blink-warning {
    animation: blinkYellow 1.2s ease-in-out infinite;
}

.blink-critical {
    animation: blinkRed 0.6s ease-in-out infinite;
}

@keyframes blinkYellow {
    0%, 100% { 
        background: rgba(255, 202, 58, 0.15);
        color: #ffca3a;
        transform: scale(1);
    }
    50% { 
        background: rgba(255, 202, 58, 0.35);
        color: #fff;
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 202, 58, 0.2);
    }
}

@keyframes blinkRed {
    0%, 100% { 
        background: rgba(255, 89, 94, 0.15);
        color: #ff595e;
        transform: scale(1);
    }
    50% { 
        background: rgba(255, 89, 94, 0.40);
        color: #fff;
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(255, 89, 94, 0.3);
    }
}

/* ============================================
   CARDS COM 56 TEMAS DIFERENTES
   ============================================ */

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.theme-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--gold);
}

.theme-card .theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
}

.theme-card .theme-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.theme-card .theme-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    background: rgba(247, 201, 72, 0.15);
    color: var(--gold);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ============================================
   TEXTO DE ANIVERSÁRIO BONITO
   ============================================ */

.birthday-message {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 30px 35px;
    margin: 25px 0;
    border-left: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.birthday-message::before {
    content: '🎂';
    position: absolute;
    right: 20px;
    top: -10px;
    font-size: 80px;
    opacity: 0.06;
}

.birthday-message h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
}

.birthday-message p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.birthday-message .autor {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: normal;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .birthday-message {
        padding: 20px;
    }
    .birthday-message::before {
        font-size: 50px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}