/* ==========================================================================
   Fakturi.eu - Премиум CSS 
   Тъмна корпоративна тема с меки сенки и плавни ефекти
   ========================================================================== */
:root {
    --primary-blue: #0c2a4d;
    --primary-hover: #061526;
    --accent-blue: #1d4ed8;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --gold: #d4af37;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    color: var(--text-dark); 
    background-color: var(--bg-light); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

a { text-decoration: none; color: var(--accent-blue); transition: all 0.3s ease; }
a:hover { color: var(--primary-hover); }

/* Grid & Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.col { flex: 1; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
@media (max-width: 768px) { .col-md-6, .col-md-4 { flex: 0 0 100%; max-width: 100%; } }

/* Utility Classes */
.text-center { text-align: center; }
.mt-5 { margin-top: 2rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.py-5 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

/* Navbar */
.navbar { 
    background-color: var(--bg-white); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { font-size: 1.6rem; font-weight: 800; color: var(--primary-blue); letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-muted); margin-left: 25px; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-blue); transform: translateY(-1px); }

/* --- Мобилно меню (Респонсив) --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Показваме хамбургер бутона */
    }
    .navbar .container {
        flex-wrap: wrap;
    }
    .nav-links {
        display: none; /* Скриваме линковете по подразбиране */
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        z-index: 99;
    }
    .nav-links.active {
        display: flex; /* Показваме менюто при клик */
    }
    .nav-links a {
        margin: 10px 0;
        text-align: center;
        font-size: 1.1rem;
    }
    .nav-links .btn {
        margin: 10px auto !important;
        width: 100%;
        max-width: 250px;
    }
}

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 600; 
    border: 2px solid transparent; 
    padding: 0.6rem 1.5rem; 
    font-size: 1rem; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.btn-primary { 
    color: #fff !important; 
    background-color: var(--primary-blue); 
    border-color: var(--primary-blue); 
    box-shadow: 0 4px 10px rgba(12, 42, 77, 0.2);
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    border-color: var(--primary-hover); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(12, 42, 77, 0.3);
}
.btn-outline-primary { 
    color: var(--primary-blue) !important; 
    border-color: var(--primary-blue); 
    background: transparent; 
}
.btn-outline-primary:hover { 
    color: #fff !important; 
    background-color: var(--primary-blue); 
    transform: translateY(-2px);
}
.btn-block { display: flex; width: 100%; }

/* Cards & Forms */
.card { 
    background-color: var(--bg-white); 
    border: 1px solid rgba(226, 232, 240, 0.8); 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    padding: 2rem; 
    transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.card-title { margin-bottom: 1.2rem; font-size: 1.3rem; color: var(--primary-blue); font-weight: 700; }

.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); font-size: 0.9rem; }
.form-control { 
    display: block; 
    width: 100%; 
    padding: 0.75rem 1rem; 
    font-size: 1rem; 
    color: var(--text-dark); 
    background-color: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    transition: all 0.2s ease; 
}
.form-control:focus { 
    border-color: var(--accent-blue); 
    outline: 0; 
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15); 
}

/* --- HERO СЕКЦИЯ & МАКЕТ --- */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: visible; /* Позволява анимациите да излизат навън */
}

/* Доверителен бадж */
.trust-badge {
    display: inline-block;
    background: rgba(12, 42, 77, 0.05);
    color: var(--primary-blue);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    border: 1px solid rgba(12, 42, 77, 0.1);
}

/* Красив макет (Mockup) */
.hero-mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-mockup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(12, 42, 77, 0.12);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.mockup-header {
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-dots span {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-right: 5px;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-body { padding: 25px; }
.mockup-title { width: 50%; height: 24px; background: var(--border-color); border-radius: 4px; margin-bottom: 20px; }
.mockup-row { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
.mockup-line-short { width: 30%; height: 12px; background: #e2e8f0; border-radius: 4px; }
.mockup-line-long { width: 60%; height: 12px; background: #f1f5f9; border-radius: 4px; }
.mockup-total { display: flex; justify-content: flex-end; margin-top: 20px; }
.mockup-total-box { width: 40%; height: 30px; background: var(--primary-blue); border-radius: 4px; }

/* Плаваща нотификация */
.floating-alert {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid var(--success);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 0.9rem;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Pricing Table */
.pricing-card { 
    text-align: center; 
    border-radius: 16px; 
    padding: 2.5rem 2rem; 
    position: relative; 
    overflow: visible !important; /* Спира изрязването на баджа */
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.pricing-card .price { font-size: 3rem; color: var(--primary-blue); font-weight: 800; margin: 1.5rem 0; letter-spacing: -1px; }
.pricing-card .price span { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; margin-bottom: 2rem; }
.pricing-card ul li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); color: var(--text-dark); font-size: 0.95rem; }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li i { color: var(--success); margin-right: 8px; font-weight: bold; }
.pricing-card ul li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: 0.7; }
.pricing-card ul li.disabled i { color: var(--danger); text-decoration: none; }

/* Dashboard специфични */
.sidebar { background-color: var(--bg-white); border-right: 1px solid var(--border-color); }
.sidebar-header { color: var(--primary-blue); font-weight: 800; letter-spacing: -0.5px; }
.sidebar-nav a.active { background-color: rgba(12, 42, 77, 0.05); color: var(--primary-blue); border-left: 3px solid var(--primary-blue); border-radius: 0 4px 4px 0; }
.topbar { background-color: var(--bg-white); box-shadow: 0 2px 10px rgba(0,0,0,0.02); border-bottom: none; }

/* Таблици */
.table th { background-color: var(--bg-light); color: var(--text-muted); letter-spacing: 0.5px; border-bottom: 2px solid var(--border-color); }
.table td { vertical-align: middle; color: var(--text-dark); }

/* Footer */
footer { background-color: var(--bg-white); border-top: 1px solid var(--border-color); padding: 30px 0; margin-top: auto; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   DASHBOARD ЛЕЙАУТ (Работно табло)
   ========================================================================== */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.text-white { color: #fff !important; }
.bg-primary { background-color: var(--primary-blue) !important; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

/* Странично меню */
.sidebar { width: 260px; background-color: #ffffff; border-right: 1px solid var(--border-color); min-height: 100vh; display: flex; flex-direction: column; }
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); font-size: 1.5rem; font-weight: bold; color: var(--primary-blue); }
.sidebar-nav { list-style: none; padding: 20px 0; margin: 0; flex: 1; }
.sidebar-nav li { padding: 0 20px; margin-bottom: 10px; }
.sidebar-nav a { display: block; padding: 10px 15px; color: var(--text-dark); font-weight: 500; border-radius: 4px; transition: all 0.2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background-color: rgba(12, 42, 77, 0.05); color: var(--primary-blue); }

/* Основно съдържание */
.main-wrapper { flex: 1; background-color: var(--bg-light); min-height: 100vh; }
.topbar { background-color: #ffffff; height: 70px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.dashboard-content { padding: 30px; }

/* Статистики и Прогрес бар */
.stat-card { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.stat-title { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; font-weight: bold; margin-bottom: 10px; }
.stat-value { font-size: 1.8rem; font-weight: bold; color: var(--text-dark); }
.progress-bg { width: 100%; height: 8px; background-color: #e9ecef; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.progress-bar { height: 100%; background-color: var(--primary-blue); }
.progress-danger { background-color: var(--danger); }

/* Таблица в дашборда */
.table { width: 100%; border-collapse: collapse; margin-bottom: 0; }
.table th, .table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); text-align: left; }
.table th { background-color: #f8f9fa; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.badge-success { background-color: #d4edda; color: #155724; }
.badge-warning { background-color: #fff3cd; color: #856404; }
.badge-danger { background-color: #f8d7da; color: #721c24; }