#marka-arastirma-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#marka-arastirma-container h3 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
    font-size: 28px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #333;
    font-size: 16px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal !important;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 6px;
    border: 2px solid transparent;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background-color: #e9ecef;
    border-color: #0073aa;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 12px;
    transform: scale(1.2);
}

#sinif_listesi {
    height: 180px;
    padding: 10px;
}

.form-group button {
    padding: 15px 30px;
    margin-right: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#search-btn {
    background-color: #0073aa;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

#search-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
}

#clear-btn {
    background-color: #666;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 102, 102, 0.3);
}

#clear-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 102, 102, 0.4);
}

#loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 18px;
}

/* Sonuç Tablosu - Daha Geniş ve Modern */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-table th,
.results-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-header {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.results-header h4 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 40px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
}

/* Detay Butonu - Yüksek Öncelik */
#marka-arastirma-container .results-table .detail-btn,
.results-table .detail-btn {
    background: linear-gradient(135deg, #0073aa, #005a87) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3) !important;
    min-width: 80px !important;
    text-align: center !important;
    display: inline-block !important;
    text-decoration: none !important;
}

#marka-arastirma-container .results-table .detail-btn:hover,
.results-table .detail-btn:hover {
    background: linear-gradient(135deg, #005a87, #004466) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4) !important;
    color: white !important;
}

#marka-arastirma-container .results-table .detail-btn:disabled,
.results-table .detail-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3) !important;
}

/* Modal Pencere Stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white !important;
    border-radius: 4px !important;
    max-width: 1000px !important;
    max-height: 90vh !important;
    width: 95% !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    animation: slideIn 0.3s ease !important;
}

.modal-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Modal X Kapatma Butonu - Yüksek Öncelik */
#detail-modal .modal-close,
.modal-overlay .modal-close {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
}

#detail-modal .modal-close:hover,
.modal-overlay .modal-close:hover {
    background: linear-gradient(135deg, #c82333, #a02127) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4) !important;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.detail-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.detail-table td:first-child {
    background-color: #f8f9fa;
    width: 200px;
    font-weight: 600;
    color: #495057;
}

.detail-table td:last-child {
    color: #333;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

.services-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.services-section h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 18px;
    font-weight: 600;
}

.services-text {
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: right;
    border-top: 1px solid #eee;
}

.modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Destek Modal Stilleri */
.support-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.support-modal-header {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.support-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.support-modal-body {
    padding: 30px;
    text-align: center;
}

.support-modal-body p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.support-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #eee;
}

.support-yes-btn,
.support-no-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-yes-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.support-yes-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.support-no-btn {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.support-no-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

/* İletişim Modal Stilleri */
.contact-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.contact-modal-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.contact-modal-body {
    padding: 30px;
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.contact-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form-group input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.contact-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #eee;
}

.contact-submit-btn,
.contact-cancel-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.3);
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #005a87, #004466);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.4);
}

.contact-submit-btn:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    transform: none;
}

.contact-cancel-btn {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.contact-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

/* Başarı Modal Stilleri */
.success-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.success-modal-header {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.success-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.success-modal-body {
    padding: 30px;
    text-align: center;
}

.success-modal-body p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.success-modal-body strong {
    color: #0073aa;
}

.success-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

.success-ok-btn {
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.success-ok-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* Modal Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .detail-table td {
        padding: 10px 12px;
    }
    
    .detail-table td:first-child {
        width: 140px;
        font-size: 14px;
    }
    
    .services-section {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .support-modal-content,
    .contact-modal-content,
    .success-modal-content {
        width: 95%;
    }
    
    .support-modal-footer,
    .contact-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .support-yes-btn,
    .support-no-btn,
    .contact-submit-btn,
    .contact-cancel-btn {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    #marka-arastirma-container {
        max-width: 95%;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    #marka-arastirma-container {
        padding: 20px;
        margin: 10px;
    }
    
    #marka-arastirma-container h3 {
        font-size: 24px;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .form-group button {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .results-table {
        font-size: 14px;
    }
    
    .results-table th,
    .results-table td {
        padding: 12px 10px;
    }
    
    #sinif_listesi {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .results-table th,
    .results-table td {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .radio-label {
        padding: 10px 12px;
        font-size: 14px;
    }
}