﻿body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.categories-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.main-category-item {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border: 1px solid #667797;
    border-radius: 12px;
    padding: 0.2rem 1rem;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .main-category-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #ccffff;
    }

    .main-category-item.active {
        background: linear-gradient(135deg, #fff 0%, #fff 100%);
        color: white;
        border-color: #4dabf7;
    }

    .main-category-item h5 {
        margin-bottom: 0.3rem;
        margin: 2px;
        font-weight: 600;
    }

    .main-category-item .category-id {
        font-size: 0.9rem;
        opacity: 0.8;
    }

.subcategories-wrapper {
    margin-top: 1rem;
    padding-left: 2rem;
    margin-left: 1rem;
}

.subcategory-item {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border: 0.7px solid #667797;
    border-radius: 8px;
    padding: 0.2rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    transform: translateX(0);
    cursor: pointer;
}

    .subcategory-item:hover {
        transform: translateX(10px);
        box-shadow: 0 3px 10px rgba(33, 150, 243, 0.2);
    }

    .subcategory-item.active {
        background: linear-gradient(135deg, #fff 0%, #fff 100%);
        color: black;
        border-color: #4dabf7;
    }

        .subcategory-item.active h6 {
            color: #000;
        }

        .subcategory-item.active .subcategory-id {
            color: rgba(255, 255, 255, 0.8);
        }

    .subcategory-item h6 {
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: #000;
    }

    .subcategory-item .subcategory-id {
        font-size: 0.8rem;
        color: #666;
    }

.trainings-wrapper {
    margin-top: 1rem;
    padding-left: 2rem;
    margin-left: 1rem;
}

.training-item {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border: 1px solid #4dd0e1;
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    transform: translateX(0);
}

    .training-item:hover {
        transform: translateX(15px);
        box-shadow: 0 3px 10px rgba(255, 152, 0, 0.2);
    }

    .training-item h6 {
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: #212529 !important;
        margin-left:5px;
    }

    .training-item .training-info {
        font-size: 0.8rem;
        color: #555;
    }

    .training-item .training-duration {
        font-size: 0.8rem;
        color: #0097a7;
        font-weight: 500;
    }

    .training-item .training-date {
        font-size: 0.8rem;
        color: #666;
    }

.no-subcategories, .no-trainings {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-style: italic;
}

.section-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

    .section-title i {
        margin-right: 0.5rem;
        color: #28a745;
    }

.text-center.py-3 {
    text-align: center;
    padding: 1rem 0;
}

.fas.fa-spinner.fa-spin {
    margin-right: 0.5rem;
}

.category-dropdown {
    position: relative;
}

.category-dropdown-toggle {
    background-color: white;
    color: #333;
    border: 1px solid #ced4da;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

    .category-dropdown-toggle:hover {
        background-color: #f1f1f1;
    }

.category-dropdown-menu {
    min-width: 160px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.25rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.category-dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

    .category-dropdown-item:hover {
        background-color: #f8f9fa;
        color: #212529;
    }

    .category-dropdown-item.text-danger {
        color: #dc3545;
    }

        .category-dropdown-item.text-danger:hover {
            background-color: #f8d7da;
            color: #a71d2a;
        }


.kategori-dropdown {
    padding: 10px;
    min-width: 220px;
    border-radius: 12px;
    font-size: 16px;
}

.kategori-item {
    padding: 12px 16px !important;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
}

    .kategori-item i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

    .kategori-item:hover {
        background-color: #f1f3f9;
    }

.kategori-ekle {
    color: #198754; /* yeşil */
}

.kategori-guncelle {
    color: #fd7e14; /* turuncu */
}

.kategori-sil {
    color: #dc3545; /* kırmızı */
}

.search-results {
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 8px;
    z-index: 10;
}

.search-item {
    display: block;
    white-space: nowrap;
    overflow-x: auto; 
    overflow-y: hidden;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #212529;
    max-width: 100%;
}

    .search-item::-webkit-scrollbar {
        height: 4px;
    }

    .search-item:last-child {
        border-bottom: none;
    }

    .search-item:hover {
        background-color: #f8f9fa;
    }

