.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.products-section {
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    overflow: hidden;
}

/* Özet Bölümü */
.summary-section {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.summary-item {
    display: flex;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.summary-item .value {
    color: #26a5c4;
    font-weight: 600;
    margin-left: 5px;
}

.products-title {
    font-size: 14px;
    font-weight: 600;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.products-container {
    max-height: 240px;
    overflow-y: auto;
}

.products-container::-webkit-scrollbar {
    width: 5px;
}

.products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.products-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.products-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.product-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 60px;
    background-color: #f5f5f5;
    margin-right: 15px;
    border-radius: 3px;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-size: 14px;
    color: #333;
}

.product-code {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.remove-btn {
    color: #999;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

/* Gelişim Değerleri Bölümü */
.development-values {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.explanation-section {
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.explanation-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.explanation-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Form Alanları */
.form-fields {
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 5px;
}

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-label span {
    color: #f00;
}

.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.form-input:focus {
    border-color: #26a5c4;
}

.form-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    outline: none;
}

.form-textarea:focus {
    border-color: #26a5c4;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-label {
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-label a {
    color: #26a5c4;
    text-decoration: none;
}

.submit-btn {
    background-color: #26a5c4;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: auto;
    margin-top: 15px;
    margin-bottom: 15px;
}

.submit-btn svg {
    margin-right: 10px;
}

html, body {
    min-height: 0;
    height: auto;
}

.floating-cart {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #26a5c4;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Ana Düzen - Grid Layout YENİLEME */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 350px; /* Sol: Ana içerik, Sağ: Öneriler */
    gap: 20px;
    margin-top: 20px;
    height: 100%;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.right-sidebar {
    position: sticky;
    top: 20px;
    height: auto;
    max-height: 100vh;
    overflow: hidden;
}

/* Radar Grafik ve Önerilen Ürünler Bölümü */
.skill-analysis-section {
    padding: 25px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Radar Grafik Bölümü - Sol Taraf */
.radar-chart-section {
    padding: 0;
    width: 100%;
}

.radar-chart-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.chart-tooltip {
    background-color: white;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: none;
}

.radar-chart-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    height: 400px;
    position: relative;
}

/* Kategori Başlıkları - Donut Charts */
.category-headers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.category-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.category-header.active {
    border-color: #26a5c4;
    background: rgba(38, 165, 196, 0.1);
}

.category-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #26a5c4;
    margin-bottom: 15px;
}

.category-donut-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
}

.subcategory-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.subcategory-item {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.subcategory-item:hover {
    background-color: rgba(38, 165, 196, 0.1);
}

.subcategory-label {
    font-size: 10px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.subcategory-score {
    display: none; /* Alt kategori yüzdeleri gizli */
}

/* Hover Tooltip */
.subcategory-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    max-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.subcategory-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.subcategory-item:hover .subcategory-tooltip {
    opacity: 1;
    visibility: visible;
}

.radar-legend {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    gap: 40px;
    max-width: 500px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-color {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 4px;
}

.legend-blue {
    background-color: rgba(54, 162, 235, 0.4);
    border: 1px solid rgba(54, 162, 235, 0.8);
}

.legend-green {
    background-color: rgba(144, 238, 144, 0.4);
    border: 1px solid rgba(75, 192, 75, 0.8);
}

.radar-description {
    text-align: center;
    margin-top: 30px;
    padding: 0 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.radar-description p {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Önerilen Ürünler Bölümü - Sağ Sidebar */
.recommendations-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommendations-header {
    padding: 20px 20px 20px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.recommendations-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.recommendations-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.recommendations-container {
    height: 100%; /* Viewport height'a göre ayarla */
    overflow-y: auto;
    padding: 15px;
}

.recommendations-container::-webkit-scrollbar {
    width: 8px;
}

.recommendations-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recommendations-container::-webkit-scrollbar-thumb {
    background: #26a5c4;
    border-radius: 4px;
}

.recommendations-container::-webkit-scrollbar-thumb:hover {
    background: #1e8fa0;
}

.category-section {
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.form-title-first{
    color: #333;
    font-size: 20px;
    font-weight: 600;
}
.form-title-second{
    color: #26a5c4;
    font-size: 20px;
    font-weight: 600;
}

.category-title-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.category-products {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 sütunlu düzen */
    gap: 10px;
}

.category-product {
    background: white;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #26a5c4;
}

.category-product-img {
    width: 60px;
    height: 45px;
    margin: 0 auto 8px;
    background: #f5f5f5;
    border-radius: 3px;
    object-fit: cover;
}

.category-product-name {
    font-size: 11px;
    color: #333;
    margin-bottom: 5px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    text-align: center;
}

.category-product-code {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.add-product-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #26a5c4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    font-weight: bold;
}

.category-product:hover .add-product-btn {
    opacity: 1;
}

.category-description {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.category-score-text {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Kategori not yeterli uyarısı */
.category-alert {
    color: #e74c3c;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 8px;
}

/* Ürün Silme Butonu Hover Efekti */
.remove-btn:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 300px;
    }

    .recommendations-container {
        height: 600px;
    }

    .category-headers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
    }

    .right-sidebar {
        position: relative;
        max-height: none;
        top: 0;
    }

    .recommendations-container {
        height: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radar-chart-container {
        height: 350px;
    }

    .radar-legend {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .category-headers {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-donut-container {
        width: 120px;
        height: 120px;
    }

    .category-products {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-item {
        padding: 10px;
    }

    .product-image {
        width: 60px;
        height: 50px;
    }

    .summary-title, .products-title {
        font-size: 14px;
    }

    .form-title-first, .form-title-second {
        font-size: 18px;
    }

    .category-header-title {
        font-size: 14px;
    }

    .skill-analysis-section {
        padding: 15px;
    }

    .summary-section, .products-title {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .summary-item, .product-name {
        font-size: 12px;
    }

    .product-code {
        font-size: 10px;
    }

    .radar-chart-container {
        height: 300px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input, .form-textarea {
        padding: 8px 12px;
        font-size: 13px;
    }

    .category-title {
        font-size: 14px;
    }

    .category-description {
        font-size: 11px;
    }

    .category-product-name {
        font-size: 10px;
    }

    .category-section {
        padding: 12px;
    }

    .recommendations-header {
        padding: 15px;
    }
}


@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
