/* ============================================================
   INDEX PAGE — SHARED STYLES
   ============================================================ */

body {
    background-color: #f8f9fa;
}

/* ============================================================
   KATEGORİ SIDEBAR
   ============================================================ */
.category-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.category-header {
    background-color: #245e83;
    color: #fff;
    padding: 15px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list,
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.cat-link:hover {
    background-color: #f8fafc;
    color: #245e83;
    padding-left: 20px;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #aaa;
    transition: transform 0.3s;
}

.cat-item.active > .cat-link {
    color: #245e83;
    background-color: #f1f5f9;
    font-weight: 700;
}

.cat-item.active > .cat-link .toggle-icon {
    transform: rotate(90deg);
    color: #245e83;
}

.sub-menu {
    display: none;
    list-style: none;
    padding: 0;
    background-color: #fcfcfc;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.sub-item a {
    display: block;
    padding: 10px 15px 10px 30px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.sub-item a:hover {
    color: #245e83;
    background-color: #fff;
}

.mobile-cat-trigger {
    display: none;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* ============================================================
   BANNER
   ============================================================ */
.banner-container {
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
}

.modern-banner-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.banner-item {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-item img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    position: relative;
    z-index: 0;
}

.banner-link-wrapper {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(29, 77, 107, 0.8) 0%, rgba(29, 77, 107, 0.1) 60%, transparent 100%);
    z-index: 1;
}

.banner-content {
    position: absolute;
    z-index: 2;
    padding: 0 6%;
    color: #fff;
    max-width: 80%;
    top: 50%;
    transform: translateY(-50%);
}

.modern-banner-slider .owl-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 3;
}

.modern-banner-slider .owl-dot span {
    width: 8px !important;
    height: 4px !important;
    background: rgba(255,255,255,0.4) !important;
    border-radius: 4px !important;
}

.modern-banner-slider .owl-dot.active span {
    width: 20px !important;
    background: #fff !important;
}

.owl-animated-out,
.owl-animated-in {
    animation: none !important;
    transition: none !important;
}

/* ============================================================
   DASHBOARD KART
   ============================================================ */
.dashboard-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    overflow: hidden;
    background: #fff;
}

.dashboard-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    color: #333;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.balance-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #245e83;
}

/* ============================================================
   PULSE BUTON
   ============================================================ */
.pulse-btn {
    position: relative;
    animation: pulse 1.5s infinite;
    transition: transform 0.2s;
}

.pulse-btn:hover {
    transform: scale(1.05);
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 128, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 128, 0, 0); }
}

/* ============================================================
   CARİ BAR
   ============================================================ */
.current-selection-bar {
    font-size: 0.9rem;
    z-index: 990;
    position: relative;
}

.select2-container .select2-selection--single {
    height: 31px !important;
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
}

/* ============================================================
   MOBİL
   ============================================================ */
@media (max-width: 991px) {
    .banner-item {
        height: 200px;
    }

    .banner-item img {
        max-height: 200px;
    }

    .mobile-cat-trigger {
        display: block;
    }

    .category-sidebar {
        display: none;
        margin-bottom: 20px;
    }

    .category-sidebar.show {
        display: block;
    }
}
