/* =============================================
   LeadSense Link Rotator - Estilos
   ============================================= */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --success: #2ecc71;
    --danger: #e74c3c;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

/* ---- Login Page ---- */
.login-page {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 50%, #0a0a23 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), #6c63ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
    color: white;
}

/* ---- Navbar ---- */
.navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.3rem;
}

/* ---- Stat Cards ---- */
.stat-card {
    border-radius: 16px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

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

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* ---- Link Rows ---- */
.link-row {
    border-radius: 10px !important;
    transition: all 0.2s ease;
    border-color: #dee2e6 !important;
}

.link-row:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.1);
}

/* ---- Copy Button ---- */
.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn.copied {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    color: white !important;
}

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

.table thead th {
    border-bottom: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Progress Bar ---- */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.4s ease;
    font-weight: 600;
}

/* ---- Alerts ---- */
.alert {
    border-radius: 10px;
    border: none;
}

/* ---- Buttons ---- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 30px;
}

/* ---- Badge ---- */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 5px 10px;
}

/* ---- Copy Input ---- */
.copy-input {
    background-color: #f8f9fa !important;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .login-card {
        padding: 25px;
    }
    
    .link-row .row {
        gap: 0.5rem;
    }
}

/* ---- Percentage Bar Colors ---- */
.percentage-ok {
    background-color: var(--success) !important;
}

.percentage-warning {
    background-color: #f39c12 !important;
}

.percentage-danger {
    background-color: var(--danger) !important;
}

/* ---- Form ---- */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.form-label {
    font-weight: 500;
    color: #555;
}

/* ---- Footer ---- */
footer {
    background-color: white;
}

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

.link-row {
    animation: fadeIn 0.3s ease forwards;
}
