/* ===== MÜŞTERİ PANELI - DASHBOARD ===== */

.customer-dashboard {
    background-color: #f7fafc;
    padding: 1rem 0;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== SOL SIDEBAR MENU ===== */

.dashboard-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.user-avatar {
    font-size: 2rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.user-details h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.user-details p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #666;
    word-break: break-word;
}

/* MENU ITEMS */

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item i {
    font-size: 1.2rem;
    width: 1.2rem;
    text-align: center;
    color: #666;
}

.menu-item:hover {
    background-color: #f5f5f5;
    color: #e74c3c;
}

.menu-item.active {
    background-color: #ffe8e4;
    color: #e74c3c;
    border-left: 3px solid #e74c3c;
    padding-left: calc(1rem - 3px);
}

.menu-item.active i {
    color: #e74c3c;
}

.menu-item.logout {
    color: #e74c3c;
    margin-top: 1rem;
}

.menu-divider {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 1rem 0;
}

/* ===== SAĞ İÇERİK ALANI ===== */

.dashboard-content {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.section-header i {
    color: #e74c3c;
}

.section-header .btn-primary {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.section-header .btn-primary i {
    color: white;
}

.section-header .btn-primary:hover {
    background-color: #c91e1e;
    border-color: #c91e1e;
}

/* ===== SIPARIŞLER LİSTESİ ===== */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.order-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.order-date {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-total {
    text-align: right;
}

.order-total .amount {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.order-total .status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-bekleme {
    background-color: #fff3cd;
    color: #856404;
}

.status-kargo {
    background-color: #cfe2ff;
    color: #084298;
}

.status-teslim {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-iptal {
    background-color: #f8d7da;
    color: #842029;
}

.order-details {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-details p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* ===== ADRES KARTLARI ===== */

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.address-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.address-card.default-address {
    border: 2px solid #e74c3c;
    background-color: #fffaf9;
}

.address-card:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1);
}

.address-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.address-card .badge {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.address-card .badge-primary {
    background-color: #e74c3c;
    color: white;
}

.address-card .badge-default {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #e74c3c;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-body {
    flex: 1;
    margin-bottom: 1rem;
}

.address-card h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.address-firm {
    margin: 0.5rem 0 0 0 !important;
    font-size: 0.9rem !important;
}

.address-text {
    margin: 0.5rem 0 !important;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.address-phone {
    margin: 0.75rem 0 0 0 !important;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-phone i {
    color: #e74c3c;
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.address-actions .btn {
    flex: 1;
    text-align: center;
    min-width: 100px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.address-actions .btn i {
    font-size: 0.9rem;
}

.address-actions .btn-outline {
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
}

.address-actions .btn-outline:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: #fffaf9;
}

.address-actions .btn-danger {
    border: 1px solid #dc2626;
    background-color: #fff;
    color: #dc2626;
    transition: all 0.3s ease;
}

.address-actions .btn-danger:hover {
    background-color: #fecaca;
    border-color: #b91c1c;
    color: #b91c1c;
}

/* ===== FORM ===== */

.profile-form,
.settings-section {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input[disabled],
.form-group select[disabled] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-group input[data-invalid] {
    border-color: #dc2626 !important;
    background-color: #fee2e2;
}

.form-group input[data-incomplete] {
    border-color: #fca5a5 !important;
    background-color: #fef2f2;
}

/* Membership Type Container */
.membership-type-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.membership-option {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.membership-option:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.membership-option input[type="radio"]:checked {
    accent-color: #e74c3c;
}

.membership-option:has(input[type="radio"]:checked) {
    border-color: #e74c3c;
    background-color: #fff5f3;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.membership-option:has(input[type="radio"]:checked) .radio-option {
    color: #e74c3c;
    font-weight: 600;
}

.membership-option:has(input[type="radio"]:checked) .membership-hint {
    color: #e74c3c;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.radio-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
}

.radio-option:hover {
    color: #e74c3c;
}

.membership-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #bbb;
    font-weight: 400;
    padding-left: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Form Section */
.form-section {
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e74c3c;
}

/* Select Styling */
.form-control[type="select"],
select.form-control {
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

select.form-control:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

select.form-control option {
    color: #333;
    background-color: #fff;
    padding: 5px;
}

select.form-control option:checked {
    background: linear-gradient(#e74c3c, #e74c3c);
    background-color: #e74c3c;
    color: white;
}

.settings-section {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.settings-section h4 {
    margin-top: 0;
    color: #333;
}

.settings-section p {
    color: #666;
    font-size: 0.95rem;
}

.settings-section.password-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.settings-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.settings-header h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.settings-description {
    margin: 0;
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

.password-form {
    max-width: 100%;
}

.password-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-form .form-group {
    margin-bottom: 1.25rem;
}

.password-form .form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.password-form button {
    margin-top: 0.5rem;
}

/* ===== EMPTY STATE ===== */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
    background: #f9fafb;
    border-radius: 12px;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: relative;
        top: 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .order-header {
        flex-direction: column;
        gap: 1rem;
    }

    .order-total {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .dashboard-sidebar {
        padding: 1rem;
    }

    .sidebar-menu {
        gap: 0.25rem;
    }

    .menu-item {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===== MODAL STYLES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f9f9f9;
}

/* ===== ORDERS LIST STYLES ===== */

.orders-list {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.table thead {
    background-color: #f9f9f9;
    border-bottom: 2px solid #e9ecef;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-primary {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Order info section in modal */
.order-info {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.order-info p {
    margin: 0.5rem 0;
    color: #666;
}

.order-info strong {
    color: #333;
}

/* Designs list styling */
.designs-list {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.designs-list .text-muted {
    color: #999;
    text-align: center;
    padding: 1rem;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list-group-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.list-group-item h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.list-group-item p {
    margin: 0.5rem 0;
    color: #666;
}

.list-group-item small {
    color: #999;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-start {
    align-items: flex-start;
}

.text-right {
    text-align: right;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.text-center {
    text-align: center;
}
