#burc-hesaplama-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background-color: #f2f2f2 !important;
    padding: 30px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 8px 20px rgba(var(--global-palette-btn-bg-rgb, 124, 58, 237), .1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    
    /* ZORUNLU GENİŞLİK */
    width: 100% !important;
    max-width: 500px !important;
    min-width: 400px !important;
}

.formGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 10px;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.formLabel {
    flex: 1 1 100%;
    font-weight: bold;
	font-size:0.95rem;
    transition: color 0.3s ease;
}

.formGroup:focus-within .formLabel {
    color: var(--global-palette-btn-bg, #7c3aed);
}

.burcSelect {
    flex: 1 1 auto;
    width: 100%;
    padding: 10px !important;
    margin: 5px 0;
    border-radius: 5px !important;
    font-size: 15px;
    border: 1px solid #ccc !important;
    transition: all 0.3s ease;
    background-image: linear-gradient(to left, rgba(var(--global-palette-btn-bg-rgb, 124, 58, 237), 0.02), transparent);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.burcSelect:focus {
    outline: none;
    border-color: var(--global-palette-btn-bg, #7c3aed) !important;
    box-shadow: 0 0 0 3px rgba(var(--global-palette-btn-bg-rgb, 124, 58, 237), 0.15);
    background-size: 100% 100%;
}

.uyumSonucu {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f5ff;
    border-left: 4px solid var(--global-palette-btn-bg, #7c3aed);
    display: none; /* Initially hidden */
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.uyumSonucu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}
.uyumalani{
	margin-top: 30px; padding: 15px; border: 1px solid #ddd; border-radius: 5px; background-color: #f9f9f9;
}

.formbuttonu {
    color: white;
    background-color: var(--global-palette-btn-bg, #7c3aed);
    border: none;
    cursor: pointer;
    margin-top: 10px;
    padding: 12px 24px !important;
    font-weight: 600;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.formbuttonu:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.formbuttonu:hover {
    box-shadow: 0 5px 15px rgba(var(--global-palette-btn-bg-rgb, 124, 58, 237), 0.3);
    transform: translateY(-2px);
}

.formbuttonu:hover:before {
    left: 100%;
}

.formbuttonu:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(var(--global-palette-btn-bg-rgb, 124, 58, 237), 0.2);
}

/* Loading animation */
.formbuttonu .loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

.formbuttonu.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation effects */
.burcSelect.error {
    border-color: #ff4a4a !important;
    box-shadow: 0 0 0 3px rgba(255, 74, 74, 0.15);
}

.error-message {
    color: #ff4a4a;
    font-size: 14px;
    margin-top: 5px;
    opacity: 0;
    height: 0;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.error-message.show {
    opacity: 1;
    height: auto;
}


 .burcistan-css-tabs {
        margin: 2rem 0;
        background: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    
    .related-tools-heading {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0 0 1.5rem 0;
        padding: 1.5rem 1.5rem 0 1.5rem;
        color: #333;
        text-align: center;
    }
    
    /* Hide radio buttons */
    .tab-radio {
        display: none;
    }
    
    /* Tab labels styling */
    .tab-labels {
        display: flex;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-labels::-webkit-scrollbar {
        display: none;
    }
    
    .tab-label {
        flex: 1;
        min-width: 120px;
        padding: 1rem 0.75rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        border-bottom: 3px solid transparent;
        font-size: 0.875rem;
        font-weight: 500;
        color: #6b7280;
        background: transparent;
        border: none;
        text-align: center;
        min-height: 80px; /* Fixed minimum height for consistency */
        position: relative;
    }
    
    .tab-label:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #374151;
    }
    
    .tab-icon {
        font-size: 1.25rem;
        display: block;
    }
    
    .tab-title {
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Active tab styling - specific for each category */
    input[id*="tab-main"]:checked ~ .tab-labels label[for*="tab-main"] {
		background: rgba(0, 0, 0, 0.02);    
        color: #9c2e00;
        border-bottom-color: #9c2e00;
    }
    
    input[id*="tab-planets"]:checked ~ .tab-labels label[for*="tab-planets"] {
		background: rgba(0, 0, 0, 0.02);    
        color: #e0790d;
        border-bottom-color: #e0790d;
    }
    
    input[id*="tab-houses"]:checked ~ .tab-labels label[for*="tab-houses"] {
		background: rgba(0, 0, 0, 0.02);    
        color: #9C27B0;
        border-bottom-color: #9C27B0;
    }
    
    input[id*="tab-asteroids"]:checked ~ .tab-labels label[for*="tab-asteroids"] {
		background: rgba(0, 0, 0, 0.02);    
        color: #717171;
        border-bottom-color: #717171;
    }
    
    input[id*="tab-special"]:checked ~ .tab-labels label[for*="tab-special"] {
		background: rgba(0, 0, 0, 0.02);
		color: #2196F3;
        border-bottom-color: #2196F3;
    }

    input[id*="tab-other"]:checked ~ .tab-labels label[for*="tab-other"] {
		background: rgba(0, 0, 0, 0.02);
		color: #DD9C04;
        border-bottom-color: #DD9C04;
    }

    /* Tab content */
    .tab-content {
        position: relative;
        min-height: 200px;
    }
    
    .tab-panel {
        display: none;
        padding: 1.5rem;
    }
    
    /* Show active panel - each radio controls its corresponding panel */
    input[id*="tab-main"]:checked ~ .tab-content .tab-panel[data-category="main"],
    input[id*="tab-planets"]:checked ~ .tab-content .tab-panel[data-category="planets"],
    input[id*="tab-houses"]:checked ~ .tab-content .tab-panel[data-category="houses"],
    input[id*="tab-asteroids"]:checked ~ .tab-content .tab-panel[data-category="asteroids"],
    input[id*="tab-special"]:checked ~ .tab-content .tab-panel[data-category="special"],
    input[id*="tab-other"]:checked ~ .tab-content .tab-panel[data-category="other"] {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }
   
    
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
        gap: 1rem;
    }
    
    .tool-item {
        display: block;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        overflow: hidden;
        height: 100%; /* Make all items same height */
    }
    
    .tool-item:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    
    .tool-item:focus {
        outline: 2px solid var(--tool-color, #9c2e00);
        outline-offset: 2px;
    }
    
    .tool-inner {
        background: var(--tool-color, #9c2e00);
        color: white;
        padding: 1rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 80px; /* Fixed minimum height for all tools */
    }
    
    .tool-inner::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }
    
    .tool-item:hover .tool-inner::before {
        left: 100%;
    }
    
    .tool-title {
        font-weight: 600;
        font-size: 0.9rem;
        line-height: 1.4;
        position: relative;
        z-index: 1;
    }
    
    .no-tools {
        text-align: center;
        color: #6b7280;
        font-style: italic;
        padding: 2rem;
        margin: 0;
    }
    

    /* Focus management for accessibility */
    .tab-label:focus {
        outline: 2px solid var(--category-color, #9c2e00);
        outline-offset: -2px;
        z-index: 1;
    }
    
    /* Better support for keyboard navigation */
    .tab-label:focus-visible {
        outline: 2px solid var(--category-color, #9c2e00);
        outline-offset: -2px;
    }

/* Media queries */
@media (max-width: 768px) {
    #burc-hesaplama-form {
        margin: 10px auto !important;
        padding: 20px !important;
        min-width: 300px !important;
    }
	        .tab-labels {
            /* Keep flex layout for tabs */
        }
        
        .tab-label {
            min-width: 100px;
            padding: 0.75rem 0.5rem;
            font-size: 0.8rem;
            min-height: 70px;
        }
        
        .tab-icon {
            font-size: 1rem;
        }
        
        .tools-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
            gap: 0.75rem;
        }
        
        .tool-inner {
            min-height: 70px; /* Smaller on mobile but consistent */
        }
        
        .tab-panel {
            padding: 1rem;
        }
        
        .related-tools-heading {
            font-size: 1.25rem;
            padding: 1rem 1rem 0 1rem;
        }
}