/* =========================================
   საბაზისო პარამეტრები (Reset)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Georgian', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer {
    background-color: #ffffff; 
    color: #475569;
    font-weight: 700;
    text-align: center; 
    padding: 15px 0; 
    margin-top: 20px;
}

/* =========================================
   ჭკვიანი ჰორიზონტალური მენიუ
   ========================================= */
.smart-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: transform 0.4s ease-in-out;
}

.nav-hidden {
    transform: translateY(-100%);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ლოგოს დიზაინი (სიგმა + ტექსტი) */
.sigma-icon {
    background-color: #E67E22; /* ენერგიული ნარინჯისფერი */
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(230, 126, 34, 0.2);
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    color: #475569;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active-link {
    background-color: #f1f5f9;
    color: #e67e22;
}

/* ამოცანების სრული რაოდენობის ციფრების სტილი (ბეჯი) */
.task-counter {
    background-color: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1;
    transition: all 0.2s ease;
}

/* ეფექტი აქტიურ მენიუზე და მაუსის მიტანისას */
.nav-links a:hover .task-counter,
.nav-links a.active-link .task-counter {
    background-color: #e67e22;
    color: #ffffff;
    border-color: #e67e22;
}

.lang-switcher .lang-link {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.lang-switcher .lang-link:hover {
    background-color: #f1f5f9;
    color: #e67e22;
    border-color: #cbd5e1;
}

/* =========================================
   მთავარი განლაგება (საიდბარი და კონტენტი)
   ========================================= */
.site-container {
    padding-top: 80px; 
}

main {
    margin-top: 30px;
}

.main-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

.content-body {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

/* =========================================
   გამართული საიდბარი და მრავალდონიანი აკორდეონი
   ========================================= */
.left-sidebar {
    width: 290px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    height: fit-content;
    overflow: visible !important;
}

.accordion-header-custom {
    background-color: #f8fafc;
    padding: 10px 12px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    margin-bottom: 4px;
    border-radius: 6px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155;
}

.accordion-header-custom:hover {
    background-color: #f1f5f9;
}

.accordion-body-custom {
    display: none;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-top: none;
    margin-bottom: 8px;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
}

.accordion-body-custom.active {
    display: block;
}

/* მენიუს სიები */
.accordion-menu-root {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100%;
}

/* ქვემენიუები */
.accordion-submenu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none !important;
    width: 100%;
    background-color: rgba(37, 99, 235, 0.01);
}

/* მენიუს გახსნის წესი */
.root-level-li.is-open > .accordion-submenu,
.accordion-item-level-1.is-open > .accordion-submenu {
    display: block !important;
}

.accordion-menu-root li {
    list-style: none !important;
    display: block;
    width: 100%;
    position: relative;
}

/* ტოგლების (ღილაკების) და პირდაპირი ბმულების ერთიანი სტილი */
.accordion-toggle, 
.accordion-link,
.main-root-toggle,
.sub-level-toggle {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 10px 14px !important;
    color: #334155 !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
    cursor: pointer;
    gap: 10px;
}

.accordion-toggle:hover, 
.accordion-link:hover,
.main-root-toggle:hover,
.sub-level-toggle:hover {
    background-color: #f1f5f9 !important;
    color: #2563eb !important;
}

/* ახალი სამი სვეტი */
.custom-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.custom-column {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

/* მენიუს თითოეული სტრიქონი */
.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}

/* ღილაკები და ბეჯები */
.btn-plus {
    background: #10b981;
    color: white;
    border: none;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 8px;
}

.badge-count {
    background: #2563eb;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.badge-theme {
    background: #64748b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* ფორმის ელემენტები */
.form-group-custom {
    margin-bottom: 12px;
}

.form-label-custom {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #334155;
}

.form-select-custom, .form-btn-custom {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.form-btn-custom {
    background: #10b981;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.form-btn-custom:hover {
    background: #059669;
}

/* კალათის სტილები */
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 6px 10px;
    margin-bottom: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-weight: bold;
    cursor: pointer;
}

/* ისრის ხატულა */
.arrow-icon {
    font-style: normal !important;
    display: inline-block !important;
    transition: transform 0.2s ease !important;
    font-size: 11px;
    color: #64748b;
    margin-left: auto;
}

/* როცა ტოგლი გახსნილია */
.main-root-toggle.is-open,
.sub-level-toggle.is-open {
    background-color: #f1f5f9 !important;
    color: #2563eb !important;
}

.main-root-toggle.is-open .arrow-icon,
.sub-level-toggle.is-open .arrow-icon {
    transform: rotate(90deg) !important;
    color: #2563eb !important;
}

/* =========================================
   სიღრმეების მიხედვით ტექსტის შეწევა
   ========================================= */
.main-root-toggle {
    font-size: 15px !important;
    font-weight: 700 !important;
    background-color: #ffffff !important;
}

/* დონე 1: ალგებრა, გეომეტრია */
.accordion-item-level-1 > .sub-level-toggle,
.accordion-item-level-1 > .accordion-link {
    padding-left: 22px !important;
    font-weight: 600 !important;
}

/* დონე 2: ამოცანების ბმულები */
.accordion-item-level-2 > .accordion-link {
    padding-left: 38px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* =========================================
   მობილური ადაპტაცია (Responsive)
   ========================================= */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
    }
    
    .left-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; 
    }
}