/* ALSATAI.COM - Fatura Doğrulama Sistemi CSS */
/* Modern Mobile-First Responsive Design */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --success-dark: #15803d;
    --warning-color: #d97706;
    --warning-dark: #b45309;
    --danger-color: #dc2626;
    --danger-dark: #b91c1c;
    --info-color: #0891b2;
    --info-dark: #0e7490;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    --gradient-warning: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Mobile-first base styles */
html {
    font-size: 16px;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Compact Header */
.main-header.compact {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header.compact h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.main-header.compact .header-brand {
    display: flex;
    align-items: center;
}

.main-header.compact .header-status {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tablet ve Desktop Header */
@media (min-width: 768px) {
    .main-header {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .main-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .main-header p {
        font-size: 1.1rem;
    }
    
    .header-stats {
        font-size: 0.9rem;
    }
}

/* Container */
.container-fluid {
    padding: 0 1rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .container-fluid {
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }
}

/* Main Container */
.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Navigation Tabs - Mobile First */
.custom-tabs {
    border-bottom: 2px solid var(--border-color);
    background: white;
    margin: 0;
    padding: 0 1rem;
}

.custom-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 1rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.custom-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.custom-tabs .nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.custom-tabs .nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Mobile Tab Layout */
@media (max-width: 767px) {
    .custom-tabs {
        padding: 0 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-tabs .nav-link {
        white-space: nowrap;
        padding: 0.75rem 0.5rem;
        margin: 0 0.125rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .custom-tabs .nav-link i {
        margin-right: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Content Sections */
.content-section {
    padding: 1.5rem;
}

@media (max-width: 767px) {
    .content-section {
        padding: 1rem;
    }
}

/* Date Selector Card */
.date-selector-card {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.date-selector-card .form-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.date-selector-card .form-control {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

.date-selector-card .form-control:focus {
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.date-selector-card .btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-selector-card .btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.date-selector-card .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.date-selector-card .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow);
}

.date-selector-card .btn-primary:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Date Selector */
@media (max-width: 767px) {
    .date-selector-card {
        padding: 1rem;
    }
    
    .date-selector-card .btn-group {
        justify-content: center;
    }
    
    .date-selector-card .btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .date-selector-card .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.stats-primary .stats-icon {
    background: var(--gradient-primary);
}

.stats-success .stats-icon {
    background: var(--gradient-success);
}

.stats-info .stats-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stats-warning .stats-icon {
    background: var(--gradient-warning);
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.stats-card p {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile Stats */
@media (max-width: 767px) {
    .stats-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-card .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .stats-card h3 {
        font-size: 1.5rem;
    }
    
    .stats-card p {
        font-size: 0.8rem;
    }
}

/* Search and Sort */
.input-group {
    margin-bottom: 1rem;
}

.input-group .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group-text {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-weight: 600;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Price List */
.price-list-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.price-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.price-item .product-info h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.price-item .product-info small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.price-item .price-info {
    text-align: right;
}

.price-item .price-range {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.price-item .price-min {
    color: var(--success-color);
}

.price-item .price-max {
    color: var(--warning-color);
}

.price-item small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Mobile Price Items */
@media (max-width: 767px) {
    .price-item {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
    
    .price-item .price-info {
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .price-item .price-range {
        font-size: 1rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* Upload Card */
.upload-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px dashed var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.upload-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.upload-area {
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.upload-area.dragover {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-color);
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-content h4 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.upload-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.demo-section {
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.demo-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.demo-buttons .btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px dashed var(--danger-color);
}

.demo-buttons .btn-outline-danger {
    color: var(--danger-color);
}

.demo-buttons .btn:hover {
    background: var(--danger-color);
    color: white;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Mobile Upload */
@media (max-width: 767px) {
    .upload-card {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 1rem;
    }
    
    .upload-content i {
        font-size: 2rem;
    }
    
    .upload-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .upload-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Settings Card */
.settings-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.settings-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.settings-card h5 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

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

.settings-card .form-control,
.settings-card .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.settings-card .form-control:focus,
.settings-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.settings-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.settings-card .form-check-label {
    font-weight: 500;
    margin-left: 0.5rem;
}

.settings-card .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
}

.settings-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Color Guide Card */
.color-guide-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.color-guide-card h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.color-guide-card h6 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.color-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Analysis Results */
.analysis-results {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.analysis-results h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.analysis-results h5 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.summary-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.summary-card h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.summary-card h6 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-stat {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
}

.summary-stat h4 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.summary-stat.stat-success h4 {
    color: var(--success-color);
}

.summary-stat.stat-warning h4 {
    color: var(--warning-color);
}

.summary-stat.stat-danger h4 {
    color: var(--danger-color);
}

.summary-stat.stat-info h4 {
    color: var(--info-color);
}

.summary-stat p {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile Summary Stats */
@media (max-width: 767px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .summary-stat {
        padding: 0.75rem;
    }
    
    .summary-stat h4 {
        font-size: 1.5rem;
    }
    
    .summary-stat p {
        font-size: 0.8rem;
    }
}

/* Result Items */
.result-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border-color);
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result-item.success {
    border-left-color: var(--success-color);
}

.result-item.warning {
    border-left-color: var(--warning-color);
}

.result-item.danger {
    border-left-color: var(--danger-color);
}

.result-item.info {
    border-left-color: var(--info-color);
}

.result-product h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.result-product small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.result-comparison {
    margin-top: 0.5rem;
}

.price-comparison {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.discount-info {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.ai-match-info {
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.ai-match-info small {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Mobile Result Items */
@media (max-width: 767px) {
    .result-item {
        padding: 0.75rem;
    }
    
    .result-product h6 {
        font-size: 0.9rem;
    }
    
    .price-comparison {
        font-size: 0.8rem;
    }
    
    .discount-info {
        font-size: 0.75rem;
    }
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: var(--shadow);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: var(--shadow);
}

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

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

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

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

/* Mobile Buttons */
@media (max-width: 767px) {
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn i {
        margin-right: 0.25rem;
    }
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.125rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-dark);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning-dark);
    border-left: 4px solid var(--warning-color);
}

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

.alert-info {
    background: rgba(8, 145, 178, 0.1);
    color: var(--info-dark);
    border-left: 4px solid var(--info-color);
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.main-footer p {
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 767px) {
    .main-footer {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    min-width: 60px;
    position: relative;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    text-align: center;
    line-height: 1;
}

.mobile-bottom-nav .nav-item.active {
    background: rgba(37, 99, 235, 0.1);
}

.mobile-bottom-nav .nav-item.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-bottom-nav .nav-item.active span {
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-bottom-nav .nav-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item:hover i {
    color: var(--primary-color);
    transform: scale(1.05);
}

.mobile-bottom-nav .nav-item:hover span {
    color: var(--primary-color);
}

/* Mobile Floating Action Button */
.mobile-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    border: 3px solid white;
}

.mobile-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.mobile-fab:active {
    transform: scale(0.95);
}

.mobile-fab i {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Mobile Body Padding */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px;
    }
    
    .main-container {
        margin-bottom: 1rem;
    }
}

/* Mobile Tab Content */
@media (max-width: 767px) {
    .tab-content {
        min-height: calc(100vh - 140px);
    }
    
    .content-section {
        padding: 1rem 0.75rem;
    }
}

/* Mobile Bottom Nav Animations */
.mobile-bottom-nav .nav-item {
    position: relative;
    overflow: hidden;
}

.mobile-bottom-nav .nav-item::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;
}

.mobile-bottom-nav .nav-item:active::before {
    left: 100%;
}

/* Mobile Bottom Nav Active Indicator */
.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Mobile FAB Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.mobile-fab.pulse {
    animation: pulse 2s infinite;
}

/* Mobile Bottom Nav Haptic Feedback */
@media (max-width: 767px) {
    .mobile-bottom-nav .nav-item:active {
        transform: scale(0.95);
    }
    
    .mobile-fab:active {
        transform: scale(0.9);
    }
}

/* Mobile Safe Area Support */
@supports (padding: max(0px)) {
    .mobile-bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    
    .mobile-fab {
        bottom: max(90px, calc(70px + env(safe-area-inset-bottom) + 20px));
    }
}

/* Mobile Bottom Nav Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: rgba(30, 41, 59, 0.95);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-bottom-nav .nav-item span {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .mobile-bottom-nav .nav-item i {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .mobile-bottom-nav .nav-item.active {
        background: rgba(37, 99, 235, 0.2);
    }
    
    .mobile-bottom-nav .nav-item.active span,
    .mobile-bottom-nav .nav-item.active i {
        color: var(--primary-color);
    }
}

/* Kamera Modal Stilleri */
.camera-container {
    position: relative;
    background: #f8f9fa;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 300px;
}

.camera-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--gradient-primary);
    color: white;
}

.camera-placeholder {
    text-align: center;
}

.camera-placeholder i {
    opacity: 0.7;
    font-size: 2rem;
}

.camera-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.camera-controls .btn {
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

#cameraVideo {
    border-radius: var(--border-radius);
    object-fit: cover;
    width: 100%;
    max-width: 100%;
}

#cameraCanvas {
    border-radius: var(--border-radius);
    max-width: 100%;
    height: auto;
}

.camera-tips .alert {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.camera-tips ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.camera-tips li {
    margin-bottom: 0.25rem;
}

/* Kamera butonları için özel stiller */
#startCameraBtn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

#captureBtn {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow);
}

#retakeBtn {
    background: var(--gradient-warning);
    color: white;
    box-shadow: var(--shadow);
}

#usePhotoBtn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: var(--shadow);
}

/* Mobile Kamera */
@media (max-width: 767px) {
    .camera-container {
        min-height: 250px;
    }
    
    .camera-preview {
        min-height: 250px;
    }
    
    .camera-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .camera-controls .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .camera-placeholder i {
        font-size: 1.5rem;
    }
}

/* File Preview */
.file-preview {
    margin-top: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.file-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.file-details h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.file-details small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

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

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

/* Custom Scrollbar */
.price-list-container::-webkit-scrollbar {
    width: 8px;
}

.price-list-container::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.price-list-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.price-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-info { color: var(--info-color); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Yüzde Karşılaştırma Grid */
.percent-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.percent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.percent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.percent-item small:first-child {
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: #6c757d;
}

.percent-item strong {
    font-size: 1.1rem;
    margin: 5px 0;
}

.percent-item small:last-child {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #6c757d;
}

.main-price {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.market-price-range {
    margin-bottom: 10px;
    color: #6c757d;
}

/* Sistem Sağlığı Modal */
#systemHealthModal .modal-dialog {
    max-width: 800px;
}

#systemHealthModal .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

#systemHealthModal .nav-link {
    color: #6c757d;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
}

#systemHealthModal .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 3px solid var(--primary-color);
}

#systemHealthModal .nav-link i {
    margin-right: 0.5rem;
}

#systemHealthModal .table {
    font-size: 0.9rem;
}

#systemHealthModal .card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#systemHealthModal .card-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

#systemHealthModal code {
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
    color: #d73502;
    font-size: 0.85rem;
}

/* Manuel Giriş Formu */
.manual-entry-form {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    margin-top: 20px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.manual-entry-form h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.manual-entry-form .table {
    background: white;
}

.manual-entry-form input.form-control,
.manual-entry-form select.form-control {
    font-size: 0.9rem;
}

.manual-entry-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Mobile için yüzde grid düzenlemesi */
@media (max-width: 767px) {
    .percent-comparison-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .percent-item {
        padding: 8px;
    }
    
    .percent-item strong {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .camera-controls,
    .upload-buttons,
    .btn {
        display: none !important;
    }
    
    .main-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .price-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}