/* Teklif Formu Stilleri */

:root {
    --primary-color: #043366;
    --primary-light: #1155a3;
    --primary-dark: #032548;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-color: #f8f9fa;
    --border-radius: 10px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

/* Form Container */
.teklif-form {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 30px 0;
}

/* Sekmeler */
.teklif-form-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
}

.teklif-form-tabs::-webkit-scrollbar {
    display: none;
}

.teklif-tab {
    padding: 20px;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    min-width: 180px;
}

.teklif-tab.active {
    background-color: #fff;
    border-bottom-color: #043366;
    color: #043366;
    font-weight: 600;
}

.teklif-tab:not(.active):hover {
    background-color: #f1f5f9;
    color: #043366;
}

.tab-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.tab-icon i {
    display: block;
    font-size: 24px;
    position: relative;
    z-index: 1;
    text-shadow: none;
    font-weight: 900;
    transition: transform 0.2s ease;
    width: 24px;
    height: 24px;
}

.teklif-tab:first-child .tab-icon {
    color: #3b82f6;
}

.teklif-tab:nth-child(2) .tab-icon {
    color: #f59e0b;
}

.teklif-tab:nth-child(3) .tab-icon {
    color: #10b981;
}

.teklif-tab.active .tab-icon {
    opacity: 1;
    filter: brightness(1.2) saturate(1.2);
}

.teklif-tab:not(.active) .tab-icon {
    opacity: 0.8;
}

.tab-title {
    font-size: 15px;
    line-height: 1.3;
}

/* Form Content */
.teklif-form-content {
    padding: 30px;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.form-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #043366;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #111;
}

.form-required {
    color: #e53e3e;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #043366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 51, 102, 0.2);
}

.form-control.is-invalid {
    border-color: #e53e3e;
    background-color: #fff5f5;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15);
}

.invalid-feedback {
    display: none;
    color: #e53e3e;
    font-size: 13px;
    margin-top: 5px;
}

.form-control.is-invalid+.invalid-feedback {
    display: block;
}

/* Checkbox/Radio Groups */
.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.form-check-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-label:hover {
    background-color: #e5e7eb;
}

.form-check-input {
    position: absolute;
    opacity: 0;
}

.form-check-input:checked+.form-check-label {
    background-color: #043366;
    color: #fff;
}

.form-check.mt-2 {
    margin-top: 10px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check .form-check-input {
    position: relative;
    opacity: 1;
    margin-right: 8px;
}

.form-check .form-check-label {
    background: none;
    padding: 0;
    cursor: pointer;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
}

.mb-3 {
    margin-bottom: 15px;
}

/* M3 Hesaplama Notu */
.m3-calc-note {
    background-color: #FFF9C4;
    border-left: 4px solid #FBC02D;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #5D4037;
}

.m3-calc-note i {
    margin-right: 6px;
    color: #F57F17;
}

.m3-calc-note a {
    color: #0277BD;
    font-weight: 600;
    text-decoration: underline;
}

.m3-calc-note a:hover {
    color: #01579B;
}

/* Dosya Yükleme Alanı */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover,
.file-upload-dragover {
    border-color: #043366;
    background-color: #f3f4f6;
}

.file-upload-icon {
    font-size: 32px;
    color: #f59e0b;
    margin-bottom: 15px;
}

.file-upload-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 15px;
}

.file-upload-info {
    font-size: 14px;
    color: #6b7280;
}

.file-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 10px;
    height: 100%;
}

.pdf-preview i {
    font-size: 40px;
    color: #ef4444;
    margin-bottom: 5px;
}

.pdf-preview span {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

.file-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #ef4444;
    z-index: 10;
}

.file-preview-remove:hover {
    background-color: #ef4444;
    color: #fff;
}

/* Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-prev {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-prev:hover {
    background-color: #e5e7eb;
}

.btn-next,
.btn-submit {
    background-color: #043366;
    color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #032548;
}

.btn-prev i,
.btn-next i,
.btn-submit i {
    font-size: 14px;
    color: inherit;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    background-color: #10b981;
    color: white;
}

.notification-error {
    background-color: #ef4444;
    color: white;
}

.notification-warning {
    background-color: #f59e0b;
    color: white;
}

.notification-info {
    background-color: #3b82f6;
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-icon {
    font-size: 20px;
}

.notification-message {
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.notification-close:hover {
    opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: background-color 0.3s, opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.loading-overlay.active .loading-content {
    transform: translateY(0);
}

.loading-spinner {
    margin-bottom: 20px;
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-block;
}

.loading-spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #f3f3f3;
    border-top-color: #043366;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: #043366;
    margin-bottom: 20px;
}

.loading-status {
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .teklif-form-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .teklif-tab {
        min-width: 140px;
        padding: 15px 10px;
    }

    .tab-icon {
        font-size: 20px;
    }

    .tab-title {
        font-size: 13px;
    }

    .teklif-form-content {
        padding: 20px 15px;
    }

    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-check-group {
        flex-direction: column;
        gap: 8px;
    }

    .form-check-label {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-section h3 {
        font-size: 18px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}