/**
 * ============================================================
 * M2Y AMAZON AU YARDIMCISI - STYLES V140126.001
 * Apple Glass Design + 3D Effects + Animations
 * ============================================================
 */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(145deg, #f0f4f8 0%, #d9e2ec 50%, #e4e8ec 100%);
    min-height: 100vh;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* ========== GLASS EFFECTS ========== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 24px -2px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px -4px rgba(0, 0, 0, 0.08),
        0 2px 8px -2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px -4px rgba(0, 0, 0, 0.12),
        0 4px 12px -2px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px -4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ========== 3D CARD EFFECTS ========== */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
}

.card-3d-hover:hover {
    transform: translateY(-4px) rotateX(2deg);
}

/* ========== STAT CARDS ========== */
.stat-card-compact {
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 10px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px -2px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-card-compact:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 4px 16px -4px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px -2px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ========== BUTTONS ========== */
.btn-excel {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px -2px rgba(22, 163, 74, 0.4),
        0 2px 4px rgba(22, 163, 74, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-excel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-excel:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px -2px rgba(22, 163, 74, 0.5),
        0 4px 8px rgba(22, 163, 74, 0.3);
}

.btn-excel:hover::before {
    left: 100%;
}

.btn-excel:active {
    transform: translateY(0) scale(0.98);
}

.btn-orange {
    background: linear-gradient(145deg, #f97316, #ea580c);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px -2px rgba(234, 88, 12, 0.4),
        0 2px 4px rgba(234, 88, 12, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-orange::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px -2px rgba(234, 88, 12, 0.5),
        0 4px 8px rgba(234, 88, 12, 0.3);
}

.btn-orange:hover::before {
    left: 100%;
}

.btn-orange:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px -2px rgba(37, 99, 235, 0.4),
        0 2px 4px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px -2px rgba(37, 99, 235, 0.5),
        0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px -2px rgba(22, 163, 74, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -2px rgba(22, 163, 74, 0.5);
}

.btn-danger {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
}

/* ========== INPUTS ========== */
.input-glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(203, 213, 225, 0.5);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-glass:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-glass:disabled {
    background: rgba(241, 245, 249, 0.8);
    color: #94a3b8;
    cursor: not-allowed;
}

/* ========== CHIPS & BADGES ========== */
.chip {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip-inactive {
    background: rgba(255, 255, 255, 0.6);
    color: #64748b;
    border-color: rgba(203, 213, 225, 0.4);
}

.chip-inactive:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border-color: rgba(203, 213, 225, 0.8);
}

.chip-active {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: white;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.3);
}

.method-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.method-sea { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }
.method-air { background: rgba(14, 165, 233, 0.1); color: #0284c7; }

/* ========== STATUS INDICATORS ========== */
.status-dot,
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-sellable { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15), 0 0 8px rgba(34, 197, 94, 0.3); }
.status-unsellable { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.status-unknown { background: #94a3b8; box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.15); }
.status-rejected { background: #1e293b; box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.15); }

/* ========== ROI COLORS ========== */
.roi-excellent { color: #16a34a; }
.roi-good { color: #2563eb; }
.roi-moderate { color: #d97706; }
.roi-poor { color: #dc2626; }

/* ========== TABLE ========== */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.data-table thead th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}

.data-table thead th.sortable:hover {
    color: #3b82f6;
}

.data-table tbody tr {
    transition: all 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    vertical-align: middle;
}

/* ========== MODAL & OVERLAY ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.active {
    opacity: 1;
    visibility: visible;
}

/* ========== SLIDE PANEL ========== */
.slide-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
}

.slide-panel.open {
    transform: translateX(0);
}

/* ========== CHECKBOX CARDS ========== */
.checkbox-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.checkbox-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.checkbox-card.selected {
    background: rgba(59, 130, 246, 0.06);
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 12px -2px rgba(59, 130, 246, 0.15);
}

/* ========== TABS ========== */
.tab-container {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    color: #64748b;
}

.tab-btn:hover {
    color: #334155;
}

.tab-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse3d {
    0%, 100% { box-shadow: 0 4px 16px -2px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 8px 24px -4px rgba(0,0,0,0.12); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.3s ease forwards; }
.animate-scale-in { animation: scaleIn 0.25s ease forwards; }
.animate-pulse-3d { animation: pulse3d 2s ease-in-out infinite; }

.animate-delay-1 { animation-delay: 50ms; }
.animate-delay-2 { animation-delay: 100ms; }
.animate-delay-3 { animation-delay: 150ms; }
.animate-delay-4 { animation-delay: 200ms; }

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========== VIEW MODE ========== */
.view-mode .input-glass {
    background: rgba(248, 250, 252, 0.9) !important;
    color: #64748b !important;
    cursor: default !important;
}

.view-mode .checkbox-card {
    pointer-events: none;
}

/* ========== UTILITIES ========== */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .stat-card { padding: 12px; }
    .glass-card { border-radius: 16px; }
    .data-table tbody td { padding: 10px 12px; }
}