/* ================================================================
   DEALER DETAILS MODAL - CSS
   ================================================================
   Modern modal popup ve tabbed interface stilleri
   ================================================================ */

/* ================================================================
   MODAL OVERLAY
   ================================================================ */

.dealer-detail-overlay {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

    .dealer-detail-overlay.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ================================================================
   MODAL CONTAINER
   ================================================================ */

.dealer-detail-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================================================
   MODAL HEADER
   ================================================================ */

.dealer-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dealer-detail-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.dealer-detail-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.dealer-detail-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .dealer-detail-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* ================================================================
   TABS
   ================================================================ */

.dealer-detail-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    flex-shrink: 0;
}

.dealer-detail-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

    .dealer-detail-tab:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }

    .dealer-detail-tab.active {
        color: #667eea;
        border-bottom-color: #667eea;
        background: white;
    }

    .dealer-detail-tab i {
        margin-right: 8px;
    }

/* ================================================================
   TAB CONTENT
   ================================================================ */

.dealer-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.dealer-tab-content {
    display: none;
    animation: fadeInContent 0.3s ease;
}

    .dealer-tab-content.active {
        display: block;
    }

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   FORM SECTIONS
   ================================================================ */

.detail-section {
    margin-bottom: 30px;
}

.detail-section-title {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}

    .detail-section-title i {
        margin-right: 10px;
        color: #667eea;
    }

.detail-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-form-group {
    display: flex;
    flex-direction: column;
}

.detail-form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.95em;
}

    .detail-form-label .required {
        color: #ff416c;
        margin-left: 3px;
    }

.detail-form-input, .detail-form-select, .detail-form-textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .detail-form-input:focus, .detail-form-select:focus, .detail-form-textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .detail-form-input:disabled, .detail-form-select:disabled {
        background-color: #f5f5f5;
        cursor: not-allowed;
    }

.detail-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.detail-form-hint {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* ================================================================
   INFO BOXES
   ================================================================ */

.detail-info-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

    .detail-info-box.success {
        background: linear-gradient(135deg, #48bb7815 0%, #48bb7825 100%);
        border-left-color: #48bb78;
    }

    .detail-info-box.warning {
        background: linear-gradient(135deg, #ffa50015 0%, #ffa50025 100%);
        border-left-color: #ffa500;
    }

    .detail-info-box.error {
        background: linear-gradient(135deg, #ff416c15 0%, #ff4b2b25 100%);
        border-left-color: #ff416c;
    }

.detail-info-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.detail-info-text {
    color: #666;
    font-size: 0.95em;
}

/* ================================================================
   ADDRESS & PAYMENT CARDS (LIST VIEW)
   ================================================================ */

.detail-card-list {
    display: grid;
    gap: 15px;
}

.detail-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

    .detail-card:hover {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }

    .detail-card.default {
        border-color: #48bb78;
        background: linear-gradient(135deg, #48bb7810 0%, #48bb7820 100%);
    }

.detail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.detail-card-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.detail-card-badge {
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.detail-card-body {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.detail-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.detail-card-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

    .detail-card-btn.edit {
        background: #667eea;
        color: white;
    }

    .detail-card-btn.delete {
        background: #ff416c;
        color: white;
    }

    .detail-card-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.detail-add-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .detail-add-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

/* ================================================================
   MODAL FOOTER
   ================================================================ */

.dealer-detail-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-shrink: 0;
}

.dealer-detail-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dealer-detail-btn.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }

        .dealer-detail-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        }

    .dealer-detail-btn.secondary {
        background: #e0e0e0;
        color: #333;
    }

        .dealer-detail-btn.secondary:hover {
            background: #d0d0d0;
        }

    .dealer-detail-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ================================================================
   LOADING SPINNER
   ================================================================ */

.dealer-detail-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

    .dealer-detail-loading.active {
        display: block;
    }

.dealer-detail-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   TOGGLE SWITCH
   ================================================================ */

.detail-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .detail-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.detail-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

    .detail-toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

.detail-toggle input:checked + .detail-toggle-slider {
    background-color: #667eea;
}

    .detail-toggle input:checked + .detail-toggle-slider:before {
        transform: translateX(26px);
    }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .dealer-detail-modal {
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .dealer-detail-header {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .dealer-detail-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .dealer-detail-tabs {
        overflow-x: scroll;
    }
}

@media (max-width: 768px) {
    .dealer-detail-tab {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .dealer-detail-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .detail-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dealer-detail-footer {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dealer-detail-btn {
        width: 100%;
    }
}

/* ================================================================
   CONTACTS TAB STYLES (İLETİŞİM KİŞİLERİ)
   ================================================================ */

/* Contacts Table */

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .contacts-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .contacts-table th {
        padding: 16px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .contacts-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
        transition: all 0.2s ease;
    }

        .contacts-table tbody tr:hover {
            background-color: #f9fafb;
            transform: translateX(2px);
        }

    .contacts-table td {
        padding: 16px 12px;
        font-size: 14px;
        color: #374151;
    }

.contact-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
}

/* Contact Action Buttons */

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    font-size: 14px;
}

    .contact-action-btn.edit {
        background: #3b82f6;
        color: white;
    }

        .contact-action-btn.edit:hover {
            background: #2563eb;
            transform: scale(1.1);
        }

    .contact-action-btn.delete {
        background: #ef4444;
        color: white;
    }

        .contact-action-btn.delete:hover {
            background: #dc2626;
            transform: scale(1.1);
        }

/* Contact Mini Modal Overlay */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

    .contact-modal-overlay.active {
        display: flex;
    }

/* Contact Mini Modal */

.contact-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Modal Header */

.contact-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .contact-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.contact-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

    .contact-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Contact Modal Body */

.contact-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

    .contact-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .contact-modal-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .contact-modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

        .contact-modal-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* Contact Form Elements */

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

.contact-form-group {
    display: flex;
    flex-direction: column;
}

    .contact-form-group.full-width {
        grid-column: 1 / -1;
    }

.contact-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.contact-form-input, .contact-form-select, .contact-form-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .contact-form-input:focus, .contact-form-select:focus, .contact-form-textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.contact-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Contact Toggle Switch */

.contact-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .contact-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.contact-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

    .contact-toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

.contact-toggle input:checked + .contact-toggle-slider {
    background-color: #667eea;
}

    .contact-toggle input:checked + .contact-toggle-slider:before {
        transform: translateX(24px);
    }

/* Contact Modal Footer */

.contact-modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.contact-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .contact-modal-btn.secondary {
        background: #e5e7eb;
        color: #374151;
    }

        .contact-modal-btn.secondary:hover {
            background: #d1d5db;
        }

    .contact-modal-btn.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

        .contact-modal-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

/* Responsive for Contacts */

@media (max-width: 768px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacts-table {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .contacts-table th, .contacts-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .contact-modal {
        width: 95%;
        max-height: 95vh;
    }
}

/* ================================================================
   ADDRESSES TAB STYLES (ADRESLER)
   ================================================================ */

/* Addresses Table */

.addresses-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .addresses-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .addresses-table th {
        padding: 16px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .addresses-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
        transition: all 0.2s ease;
    }

        .addresses-table tbody tr:hover {
            background-color: #f9fafb;
            transform: translateX(2px);
        }

    .addresses-table td {
        padding: 16px 12px;
        font-size: 14px;
        color: #374151;
    }

/* Address Action Buttons */

.address-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    font-size: 14px;
}

    .address-action-btn.edit {
        background: #3b82f6;
        color: white;
    }

        .address-action-btn.edit:hover {
            background: #2563eb;
            transform: scale(1.1);
        }

    .address-action-btn.delete {
        background: #ef4444;
        color: white;
    }

        .address-action-btn.delete:hover {
            background: #dc2626;
            transform: scale(1.1);
        }

/* Address Mini Modal Overlay */

.address-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

    .address-modal-overlay.active {
        display: flex;
    }

/* Address Mini Modal */

.address-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Address Modal Header */

.address-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .address-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.address-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

    .address-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Address Modal Body */

.address-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

    .address-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .address-modal-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .address-modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

        .address-modal-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* Address Form Elements */

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

.address-form-group {
    display: flex;
    flex-direction: column;
}

    .address-form-group.full-width {
        grid-column: 1 / -1;
    }

.address-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.address-form-input, .address-form-select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .address-form-input:focus, .address-form-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Address Toggle Switch */

.address-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .address-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.address-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

    .address-toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

.address-toggle input:checked + .address-toggle-slider {
    background-color: #667eea;
}

    .address-toggle input:checked + .address-toggle-slider:before {
        transform: translateX(24px);
    }

/* Address Modal Footer */

.address-modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.address-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .address-modal-btn.secondary {
        background: #e5e7eb;
        color: #374151;
    }

        .address-modal-btn.secondary:hover {
            background: #d1d5db;
        }

    .address-modal-btn.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

        .address-modal-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

/* Responsive for Addresses */

@media (max-width: 768px) {
    .address-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .addresses-table {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .addresses-table th, .addresses-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .address-modal {
        width: 95%;
        max-height: 95vh;
    }
}

/* ================================================================
   BANK ACCOUNTS TAB STYLES (BANKA HESAPLARI)
   ================================================================ */

/* Bank Accounts Table */

.bank-accounts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .bank-accounts-table thead {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .bank-accounts-table th {
        padding: 16px 12px;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .bank-accounts-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
        transition: all 0.2s ease;
    }

        .bank-accounts-table tbody tr:hover {
            background-color: #f9fafb;
            transform: translateX(2px);
        }

    .bank-accounts-table td {
        padding: 16px 12px;
        font-size: 14px;
        color: #374151;
    }

/* Currency Badge */

.currency-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

    .currency-badge.currency-TRY {
        background: #dbeafe;
        color: #1e40af;
    }

    .currency-badge.currency-USD {
        background: #d1fae5;
        color: #065f46;
    }

    .currency-badge.currency-EUR {
        background: #fef3c7;
        color: #92400e;
    }

    .currency-badge.currency-GBP {
        background: #ede9fe;
        color: #5b21b6;
    }

    .currency-badge.currency-CNY {
        background: #fee2e2;
        color: #991b1b;
    }

/* Bank Account Action Buttons */

.bank-account-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    font-size: 14px;
}

    .bank-account-action-btn.edit {
        background: #3b82f6;
        color: white;
    }

        .bank-account-action-btn.edit:hover {
            background: #2563eb;
            transform: scale(1.1);
        }

    .bank-account-action-btn.delete {
        background: #ef4444;
        color: white;
    }

        .bank-account-action-btn.delete:hover {
            background: #dc2626;
            transform: scale(1.1);
        }

/* Bank Account Mini Modal Overlay */

.bank-account-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

    .bank-account-modal-overlay.active {
        display: flex;
    }

/* Bank Account Mini Modal */

.bank-account-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Bank Account Modal Header */

.bank-account-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .bank-account-modal-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.bank-account-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

    .bank-account-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Bank Account Modal Body */

.bank-account-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
}

    .bank-account-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .bank-account-modal-body::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .bank-account-modal-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

        .bank-account-modal-body::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* Bank Account Form Elements */

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

.bank-account-form-group {
    display: flex;
    flex-direction: column;
}

    .bank-account-form-group.full-width {
        grid-column: 1 / -1;
    }

.bank-account-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.bank-account-form-input, .bank-account-form-select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .bank-account-form-input:focus, .bank-account-form-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Bank Account Toggle Switch */

.bank-account-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .bank-account-toggle input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.bank-account-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

    .bank-account-toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

.bank-account-toggle input:checked + .bank-account-toggle-slider {
    background-color: #667eea;
}

    .bank-account-toggle input:checked + .bank-account-toggle-slider:before {
        transform: translateX(24px);
    }

/* Bank Account Modal Footer */

.bank-account-modal-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.bank-account-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .bank-account-modal-btn.secondary {
        background: #e5e7eb;
        color: #374151;
    }

        .bank-account-modal-btn.secondary:hover {
            background: #d1d5db;
        }

    .bank-account-modal-btn.primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

        .bank-account-modal-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

/* Responsive for Bank Accounts */

@media (max-width: 768px) {
    .bank-account-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bank-accounts-table {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .bank-accounts-table th, .bank-accounts-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .bank-account-modal {
        width: 95%;
        max-height: 95vh;
    }
}

/* ================================================================
   COMMERCIAL TERMS STYLES - ADDED BY INTEGRATION
   ================================================================ */

/* Commercial Terms Table */

.commercial-terms-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .commercial-terms-table thead {
        background: #f3f4f6;
    }

    .commercial-terms-table th {
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        color: #374151;
        font-size: 0.9rem;
        border-bottom: 2px solid #e5e7eb;
    }

    .commercial-terms-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #e5e7eb;
        color: #1f2937;
    }

    .commercial-terms-table tbody tr:last-child td {
        border-bottom: none;
    }

    .commercial-terms-table tbody tr:hover {
        background: #f9fafb;
    }

.commercial-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

    .commercial-badge.badge-success {
        background: #d1fae5;
        color: #065f46;
    }

    .commercial-badge.badge-secondary {
        background: #e5e7eb;
        color: #6b7280;
    }

/* Commercial Terms Modal Overlay */

.commercial-terms-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

    .commercial-terms-modal-overlay.active {
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

/* Commercial Terms Modal */

.commercial-terms-modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.commercial-terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

    .commercial-terms-modal-header h3 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
        color: white;
    }

.commercial-terms-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

    .commercial-terms-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.commercial-terms-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Sections */

.ct-form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

    .ct-form-section:last-child {
        margin-bottom: 0;
    }

.ct-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6366f1;
}

    .ct-section-header i {
        font-size: 1.3rem;
        color: #6366f1;
    }

    .ct-section-header h4 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1f2937;
    }

/* Form Layout */

.ct-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

    .ct-form-row:last-child {
        margin-bottom: 0;
    }

.ct-form-group {
    display: flex;
    flex-direction: column;
}

    .ct-form-group.full-width {
        grid-column: 1 / -1;
    }

.ct-form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ct-form-input, .ct-form-select, .ct-form-textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

    .ct-form-input:focus, .ct-form-select:focus, .ct-form-textarea:focus {
        outline: none;
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }

.ct-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.ct-form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.ct-form-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 4px;
    font-style: italic;
}

/* Checkbox Toggle */

.ct-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.ct-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

    .ct-toggle input[type="checkbox"] {
        opacity: 0;
        width: 0;
        height: 0;
    }

.ct-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

    .ct-toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

.ct-toggle input:checked + .ct-toggle-slider {
    background-color: #6366f1;
}

    .ct-toggle input:checked + .ct-toggle-slider:before {
        transform: translateX(22px);
    }

/* Modal Footer */

.commercial-terms-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
}

.ct-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

    .ct-modal-btn.primary {
        background: #6366f1;
        color: white;
    }

        .ct-modal-btn.primary:hover {
            background: #4f46e5;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

    .ct-modal-btn.secondary {
        background: #e5e7eb;
        color: #374151;
    }

        .ct-modal-btn.secondary:hover {
            background: #d1d5db;
        }

/* Responsive */

@media (max-width: 768px) {
    .ct-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .commercial-terms-modal {
        margin: 20px auto;
        max-width: 95%;
    }
}
