/* M-Core Invest - Tema Verde e Vermelho */

:root {
    /* Cores principais */
    --green-dark: #1a5d1a;
    --green-medium: #2d8f2d;
    --green-light: #4caf50;
    --green-pale: #e8f5e9;

    --red-dark: #8b0000;
    --red-medium: #c62828;
    --red-light: #ef5350;
    --red-pale: #ffebee;

    /* Cores neutras */
    --dark: #1a1a2e;
    --gray-dark: #343a40;
    --gray-medium: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;

    /* Cores de ação */
    --success: var(--green-medium);
    --danger: var(--red-medium);
    --warning: #ff9800;
    --info: #2196f3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.bg-dark-green {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--dark) 100%) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.card-header.bg-danger {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-medium) 100%) !important;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-medium) 0%, var(--green-light) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 143, 45, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-medium) 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--red-medium) 0%, var(--red-light) 100%);
}

.btn-success {
    background: var(--green-medium);
    border: none;
}

.btn-outline-primary {
    color: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-outline-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--dark) 50%, var(--red-dark) 100%);
    color: white;
    padding: 80px 0;
    margin-top: -24px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

/* Dashboard Cards */
.stat-card {
    padding: 24px;
    border-radius: 12px;
    color: white;
}

.stat-card.green {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
}

.stat-card.red {
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-medium) 100%);
}

.stat-card.dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-dark) 100%);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--green-dark);
    color: white;
    font-weight: 600;
    border: none;
}

.table tbody tr:hover {
    background-color: var(--green-pale);
}

/* Status Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-lead { background: var(--gray-light); color: var(--gray-dark); }
.badge-cadastrado { background: var(--info); color: white; }
.badge-captacao { background: var(--warning); color: var(--dark); }
.badge-parcial { background: #ffb74d; color: var(--dark); }
.badge-aguardando { background: #ff8a65; color: white; }
.badge-validado { background: var(--green-medium); color: white; }
.badge-alocado { background: var(--green-dark); color: white; }
.badge-encerrado { background: var(--gray-dark); color: white; }

/* Forms */
.form-control:focus {
    border-color: var(--green-medium);
    box-shadow: 0 0 0 0.2rem rgba(45, 143, 45, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-dark);
}

/* Input Box Simples (Página Inicial) */
.email-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.email-box .form-control {
    padding: 15px 20px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.email-box .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--green-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green-medium);
    border: 2px solid white;
}

.timeline-item.positive::before {
    background: var(--green-medium);
}

.timeline-item.negative::before {
    background: var(--red-medium);
}

/* Alerts */
.alert-success {
    background-color: var(--green-pale);
    border-color: var(--green-light);
    color: var(--green-dark);
}

.alert-danger {
    background-color: var(--red-pale);
    border-color: var(--red-light);
    color: var(--red-dark);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--green-dark) 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

    .email-box {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Money formatting */
.money-positive {
    color: var(--green-medium);
    font-weight: 600;
}

.money-negative {
    color: var(--red-medium);
    font-weight: 600;
}

/* Sidebar Admin */
.sidebar {
    background: var(--dark);
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--green-light);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--green-light);
}
