:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #00b894;
    --danger-color: #e74c3c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    margin: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.auth-header h1 i {
    color: #25d366;
}

.auth-header p {
    color: #666;
    margin: 0;
}

.auth-form .form-control {
    padding: 12px 15px;
    border-radius: 10px;
}

.auth-form .btn {
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

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

.navbar-brand i {
    color: #25d366;
}

/* Sidebar */
.sidebar {
    background: white;
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: #333;
    padding: 15px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background: #f8f9fa;
    border-left-color: var(--primary-color);
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(102,126,234,0.1) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Dashboard Cards */
.dashboard-card {
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 20px;
}

.dashboard-card.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.dashboard-card.success {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.dashboard-card.warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.dashboard-card.info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.dashboard-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.dashboard-card p {
    margin: 0;
    opacity: 0.9;
}

.dashboard-card i {
    font-size: 2rem;
    opacity: 0.8;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    font-weight: 600;
    color: #666;
    border: none;
}

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

.badge-pending { background: #ffeaa7; color: #856404; }
.badge-running { background: #81ecec; color: #00796b; }
.badge-completed { background: #55efc4; color: #00695c; }
.badge-paused { background: #fab1a0; color: #e17055; }
.badge-cancelled { background: #dfe6e9; color: #636e72; }
.badge-sent { background: #74b9ff; color: #0984e3; }
.badge-delivered { background: #55efc4; color: #00b894; }
.badge-read { background: #a29bfe; color: #6c5ce7; }
.badge-failed { background: #ff7675; color: #d63031; }

/* Pacotes Créditos */
.pacote-card {
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 20px;
}

.pacote-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pacote-card.popular {
    border-color: var(--success-color);
    background: linear-gradient(180deg, rgba(0,184,148,0.05) 0%, transparent 100%);
}

.pacote-card h4 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
}

.pacote-card .desconto {
    background: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pacote-card .preco {
    font-size: 1.5rem;
    color: #333;
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 250px;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .dashboard-card h3 {
        font-size: 1.8rem;
    }
}
