/* ===== MÜŞTERİ PANELİ MODERN TASARIM ===== */

:root {
    --primary-color: #2E8B57;
    --secondary-color: #20B2AA;
    --accent-color: #32CD32;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Renk uyumu için ek stiller */
.bg-info {
    background: linear-gradient(135deg, var(--info-color), #0dcaf0) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.btn-outline-info {
    border: 2px solid var(--info-color);
    color: var(--info-color);
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--info-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

/* Genel Stiller - Dashboard sayfası için override edilebilir */
body:not(.dashboard-page) {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Dashboard sayfası için özel stil */
body.dashboard-page {
    background: #f8f9fa !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
}

/* Müşteri Panel Container - Dashboard sayfası için override edilebilir */
.customer-panel:not(.dashboard-container) {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Dashboard container için özel stil */
.dashboard-container.customer-panel {
    background: #f8f9fa !important;
}

/* Header stilleri kaldırıldı: global header kullanılacak */

/* Ana İçerik Alanı */
.customer-main {
    padding: 2rem 0;
}

/* Dashboard Kartları */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dashboard-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dashboard-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dashboard-card .card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Form Tasarımı */
.customer-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.customer-form .form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.customer-form .form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
    background: white;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buton Tasarımları */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 139, 87, 0.3);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    color: white;
}

/* Tablo Tasarımı */
.customer-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.customer-table .table {
    margin: 0;
}

.customer-table .table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.customer-table .table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.customer-table .table tbody tr:hover {
    background: #f8f9fa;
}

/* Durum Badge'leri */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Alert Tasarımları */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    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;
}

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

/* Responsive Tasarım */
@media (max-width: 768px) {
    .customer-header h1 {
        font-size: 1.5rem;
    }
    
    .customer-form {
        padding: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .customer-table {
        font-size: 0.9rem;
    }
    
    .customer-table .table th,
    .customer-table .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Özel Efektler */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Ürün Kartları */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Adres Kartları */
.address-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.address-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.address-card.selected {
    border-color: var(--primary-color);
    background: rgba(46, 139, 87, 0.05);
}

.address-card .address-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.address-card .address-details {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sipariş Detayları */
.order-details {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.order-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.order-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.order-item-details {
    flex: 1;
}

.order-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.order-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-summary {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Genel Sayfa Uyumluluğu */
.container.my-4 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Sayfa Başlıkları */
.h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.h3 i {
    color: var(--primary-color);
}

/* Card Genel Düzenlemeler */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    font-weight: 600;
}

/* Ürün Kartları */
.product-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-card .card-title a {
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

.product-card .card-title a:hover {
    color: var(--primary-color);
}

/* Favori Butonu */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #ccc;
}

.favorite-btn:hover {
    background: white;
    color: var(--danger-color);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--danger-color);
    background: white;
}

/* Boş Liste Mesajları */
#empty-favorites .card,
#empty-orders .card {
    border: 2px dashed #e9ecef;
    background: rgba(248, 249, 250, 0.5);
}

#empty-favorites .card-body,
#empty-orders .card-body {
    padding: 3rem 2rem;
}

/* Navigasyon Linkleri */
.nav-tabs .nav-link {
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(46, 139, 87, 0.1);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 0 2px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Text Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Badge Güncellemeleri */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.bg-success {
    background: var(--success-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.bg-danger {
    background: var(--danger-color) !important;
}

.bg-warning {
    background: var(--warning-color) !important;
}

/* Giriş Sayfası Uyumluluğu */
.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.login-title {
    color: var(--text-dark);
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-light);
}

/* OTP Sayfası */
.otp-input-container input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: var(--transition);
}

.otp-input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

/* ===== TOAST NOTIFICATION STİLLERİ ===== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #28a745;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.toast-notification-success {
    background: #28a745;
}

.toast-notification.toast-notification-error {
    background: #dc3545;
}

.toast-notification.toast-notification-warning {
    background: #ffc107;
    color: #212529;
}

.toast-notification.toast-notification-info {
    background: #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
    opacity: 0.8;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

.toast-close:active {
    transform: scale(0.95);
}

/* Toast animasyonları */
.toast-notification.show {
    transform: translateX(0);
}

/* Responsive toast */
@media (max-width: 576px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}