/* ===== GENEL STILLER ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --input-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --button-hover: #f1f3f4;
    --table-header-bg: #f1f3f4;
    --table-row-hover: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --input-bg: #404040;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --button-hover: #404040;
    --table-header-bg: #404040;
    --table-row-hover: #404040;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #f1f3f4 100%);
    min-height: 100vh;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 20px;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, var(--bg-color) 0%, #262626 100%);
}

/* ===== TEMA TOGGLE GÜNCELLEMESİ ===== */
.theme-toggle {
    position: fixed;
    top: 10px; /* 20px'ten 10px'e düşürüldü */
    right: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.toggle-slider {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transform: translateX(0);
}

[data-theme="dark"] .toggle-slider {
    transform: translateX(28px);
}

/* ===== LOGO ===== */
.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #28a745);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ===== GİRİŞ SAYFASI STİLLERİ ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.login-container .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    /*display: block;*/
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 10px;
}

/* Checkbox Stili */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Loading Button Stili */
.login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Stili */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    transform: scale(0.7) translateY(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modal-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.modal-icon.loading {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 
        0 20px 40px rgba(0, 123, 255, 0.3),
        0 10px 20px rgba(0, 123, 255, 0.2);
}

.modal-icon.success {
    background: linear-gradient(135deg, #28a745, #157347);
    box-shadow: 
        0 20px 40px rgba(40, 167, 69, 0.3),
        0 10px 20px rgba(40, 167, 69, 0.2);
}

.modal-icon.error {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    box-shadow: 
        0 20px 40px rgba(220, 53, 69, 0.3),
        0 10px 20px rgba(220, 53, 69, 0.2);
}

.modal-icon .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.success-icon,
.error-icon {
    color: white;
    font-size: 50px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: iconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconPop {
    0% { 
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    80% { 
        transform: scale(1.1) rotate(-10deg);
        opacity: 1;
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.modal-message {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 10px;
    animation: messageSlide 0.8s ease 0.2s both;
}

@keyframes messageSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading pulse efekti */
.modal-icon.loading .spinner {
    position: relative;
}

.modal-icon.loading .spinner::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* ===== ANA SAYFA STİLLERİ ===== */
.main-page .header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.main-page .logo {
    width: 100px;
    height: 100px;
    border-radius: 25px;
    font-size: 48px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

.menu-button {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.menu-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--button-hover);
    border-color: var(--primary-color);
}

.menu-button::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;
}

.menu-button:hover::before {
    left: 100%;
}

.button-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-button:hover .button-icon {
    transform: scale(1.2);
    color: var(--primary-hover);
}

.button-text {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
}

/* SVG Icons */
.icon-products { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-dashboard { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03L21.7 4H5.21l-.94-2H1zm16 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-orders { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-customers { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 24 24'%3E%3Cpath d='M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm4 18v-6h2.5l-2.54-7.63A3.04 3.04 0 0 0 16 6.5c-1.03 0-2.05.25-2.92.72C12.2 6.9 11.17 6.83 10.1 7L8.54 8.37c-.78.78-.78 2.05 0 2.83l1.44 1.44c.78.78 2.05.78 2.83 0l1.59-1.59c.05-.05.1-.1.14-.16l.67 2.01L12 16h8v6z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-reports { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 24 24'%3E%3Cpath d='M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.icon-settings { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23007bff' viewBox='0 0 24 24'%3E%3Cpath d='M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.82,11.69,4.82,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ===== LİSTE SAYFASI STİLLERİ ===== */
.list-page .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.back-button {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.back-icon {
    margin-right: 8px;
    font-size: 18px;
}

.list-page .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.list-page .logo:hover {
    transform: translateX(-50%) scale(1.05);
}

.list-page .container {
    max-width: 1200px;
    padding-top: 120px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.table-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.data-table th {
    background: var(--table-header-bg);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.data-table tr:hover td {
    background: var(--table-row-hover);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.no-column {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.date-column {
    font-family: 'Courier New', monospace;
    color: var(--text-color);
}

.product-column {
    font-weight: 500;
}

.quantity-column {
    text-align: center;
    font-weight: 600;
}

.amount-column {
    text-align: right;
    font-weight: 700;
    color: var(--success-color);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

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

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

.total-summary {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), #28a745);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.total-summary h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.total-amount {
    font-size: 32px;
    font-weight: 700;
}

/* ===== ANİMASYONLAR ===== */
.data-table tbody tr {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.8s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.9s; }
.data-table tbody tr:nth-child(10) { animation-delay: 1.0s; }

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

/* ===== MOBİL UYUMLULUK ===== */
@media (max-width: 768px) {
    /* Tema Toggle */
    .theme-toggle {
        top: 0px;
        right: 15px;
        width: 50px;
        height: 25px;
    }
    
    .toggle-slider {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    [data-theme="dark"] .toggle-slider {
        transform: translateX(23px);
    }

    /* Genel */
    .logo {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    /* Giriş Sayfası */
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .checkmark {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }

    .spinner {
        width: 18px;
        height: 18px;
    }

    .modal-content {
        padding: 40px 25px;
        width: 95%;
        border-radius: 20px;
    }

    .modal-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .modal-icon .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .success-icon,
    .error-icon {
        font-size: 40px;
    }

    .modal-message {
        font-size: 18px;
    }

    /* Ana Sayfa */
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
    }
    
    .menu-button {
        padding: 20px 15px;
    }
    
    .button-icon {
        width: 50px;
        height: 50px;
        font-size: 30px;
        margin-bottom: 10px;
    }
    
    .button-text {
        font-size: 14px;
    }

    /* Liste Sayfası */
    .list-page .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-page .logo {
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .list-page .container {
        padding-top: 20px;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    /* Ana Sayfa */
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
    }
    
    .menu-button {
        padding: 15px 10px;
    }
    
    .button-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .button-text {
        font-size: 12px;
    }
    
    .container {
        padding: 0 5px;
    }

    /* Liste Sayfası */
    .table-container {
        padding: 15px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
    
    .total-amount {
        font-size: 24px;
    }
}
   /* Header Layout (3 kolonlu düzen) */
        .sales-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 40px;
            background: var(--card-bg);
            padding: 15px 20px;
            border-radius: 15px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .sales-header .back-button {
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 12px 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            font-weight: 600;
            text-decoration: none;
        }

        .sales-header .back-button:hover {
            background: var(--primary-hover);
            transform: translateX(-3px);
        }

        .sales-header .logo {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), #28a745);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            font-weight: bold;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }

        .sales-header .logo:hover {
            transform: scale(1.05) rotate(5deg);
        }

        /* Search Section */
        .search-section {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 20px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            margin-bottom: 30px;
        }

        .search-label {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-color);
        }

        .search-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .search-input {
            flex: 1;
            min-width: 200px;
            padding: 15px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background: var(--input-bg);
            color: var(--text-color);
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        .search-btn,
        .barcode-btn,
        .manual-btn {
            padding: 15px 25px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

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

        .search-btn:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
        }

        .barcode-btn {
            background: var(--success-color);
            color: white;
        }

        .barcode-btn:hover {
            background: #1e7e34;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
        }

        .manual-btn {
            background: var(--warning-color);
            color: #212529;
        }

        .manual-btn:hover {
            background: #e0a800;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
        }

        /* Barcode Scanner Modal */
        .barcode-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .barcode-modal.show {
            display: flex;
        }

        .barcode-content {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            max-width: 90%;
            max-height: 90%;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
        }

        .barcode-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .barcode-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-color);
        }

        .close-btn {
            background: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 18px;
        }

        .close-btn:hover {
            transform: scale(1.1);
            background: #c82333;
        }

        .camera-container {
            position: relative;
            max-width: 400px;
            margin: 0 auto;
        }

        .camera-video {
            width: 100%;
            max-width: 400px;
            height: 300px;
            border-radius: 15px;
            background: #000;
            object-fit: cover;
        }

        .scan-instructions {
            margin-top: 20px;
            color: var(--text-color);
            font-size: 16px;
        }

        .scan-result {
            margin-top: 15px;
            padding: 15px;
            background: rgba(40, 167, 69, 0.1);
            border: 1px solid var(--success-color);
            border-radius: 10px;
            color: var(--success-color);
            font-weight: 600;
            display: none;
        }

        /* ===== SATIŞ SAYFASI MOBİL RESPONSIVE ===== */
        @media (max-width: 768px) {
            .sales-header {
                padding: 12px 15px;
                margin-bottom: 20px;
            }

            .sales-header .logo {
                width: 50px;
                height: 50px;
                font-size: 24px;
				position: absolute;
				left: 50%;
				transform: translateX(-50%);
            }

            .search-section {
                padding: 20px;
            }

            .search-controls {
                flex-direction: column;
                align-items: stretch;
            }

            .search-input {
                min-width: auto;
                margin-bottom: 10px;
            }

            .search-btn,
            .barcode-btn,
            .manual-btn {
                padding: 12px 20px;
                font-size: 14px;
            }

            .barcode-content {
                padding: 20px;
                width: 95%;
            }

            .camera-video {
                height: 250px;
            }
			
			.cart-button {
        padding: 10px 15px;
        font-size: 14px;
        gap: 6px;
    }

    .cart-icon {
        font-size: 18px;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -6px;
        right: -6px;
    }
        }

        @media (max-width: 480px) {
            .sales-header .back-button {
                padding: 10px 15px;
                font-size: 14px;
            }

            .search-label {
                font-size: 16px;
            }

            .search-input {
                padding: 12px;
                font-size: 14px;
            }

            .camera-video {
                height: 200px;
            }
			
			 .cart-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cart-button .cart-text {
        display: none; /* Mobilde sadece ikon göster */
    }
        }
        /* Product Info Card */
        .product-info-card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .product-header {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
            position: relative;
        }

        .product-name {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-color);
            text-align: center;
            flex: 1;
            min-width: 200px;
        }

        .total-stock {
            font-size: 16px;
            font-weight: 600;
            color: var(--success-color);
            background: rgba(40, 167, 69, 0.1);
            padding: 8px 15px;
            border-radius: 25px;
            border: 1px solid var(--success-color);
            position: absolute;
            right: 0;
        }

        /* Form Sections */
        .form-section {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border-color);
        }

        .form-row {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group.flex-row {
            flex-direction: row;
            align-items: center;
            gap: 15px;
        }

        .form-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-color);
            white-space: nowrap;
        }

        .form-input,
        .form-select {
            padding: 12px 15px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            background: var(--input-bg);
            color: var(--text-color);
            font-size: 16px;
            transition: all 0.3s ease;
            min-width: 120px;
        }

        .form-input:focus,
        .form-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

        .price-input {
            min-width: 150px;
        }

        .quantity-input {
            min-width: 100px;
        }

        .kdv-indicator {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            background: rgba(0, 123, 255, 0.1);
            padding: 8px 15px;
            border-radius: 25px;
            border: 1px solid var(--primary-color);
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 25px;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 15px 30px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 150px;
            justify-content: center;
        }

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

        .btn-add:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
        }

        .btn-add-search {
            background: var(--success-color);
            color: white;
        }

        .btn-add-search:hover {
            background: #1e7e34;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
        }

        /* Stock Status */
        .stock-section {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
        }

        .stock-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 20px;
            margin-bottom: 10px;
            background: var(--input-bg);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .stock-item:hover {
            background: var(--button-hover);
            transform: translateX(5px);
        }

        .stock-item:last-child {
            margin-bottom: 0;
        }

        .warehouse-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-color);
        }

        .warehouse-stock {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            background: rgba(0, 123, 255, 0.1);
            padding: 8px 15px;
            border-radius: 25px;
            border: 1px solid var(--primary-color);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .sales-header {
                padding: 12px 15px;
                margin-bottom: 20px;
            }

            .product-info-card,
            .form-section,
            .stock-section {
                padding: 20px;
                margin-bottom: 15px;
            }

            .product-header {
                flex-direction: column;
                align-items: center;
                gap: 15px;
                position: relative;
            }

            .product-name {
                font-size: 20px;
                min-width: auto;
                text-align: center;
            }

            .total-stock {
                position: static;
                align-self: center;
            }

            .form-row {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }

            .form-group.flex-row {
                flex-direction: column;
                align-items: stretch;
            }

            .form-group.flex-row > div {
                display: flex !important;
                flex-direction: column;
                gap: 10px;
            }

            .action-buttons {
                flex-direction: column;
            }

            .action-btn {
                min-width: auto;
                flex: none;
            }

            .stock-item {
                padding: 12px 15px;
            }

            .warehouse-stock {
                font-size: 16px;
                padding: 6px 12px;
            }
        }

        @media (max-width: 480px) {
            .sales-header .back-button {
                padding: 10px 15px;
                font-size: 14px;
            }

            .product-info-card,
            .form-section,
            .stock-section {
                padding: 15px;
            }

            .product-name {
                font-size: 18px;
            }

            .section-title {
                font-size: 16px;
            }

            .form-input,
            .form-select {
                padding: 10px 12px;
                font-size: 14px;
                min-width: auto;
            }

            .action-btn {
                padding: 12px 20px;
                font-size: 14px;
            }
        }
/* ===== SEPET BUTONU STİLLERİ ===== */
.cart-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.cart-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.cart-button::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;
}

.cart-button:hover::before {
    left: 100%;
}

.cart-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cart-button:hover .cart-icon {
    transform: scale(1.1) rotate(5deg);
}

.cart-badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/* ===== SEPET ANİMASYONLARI ===== */
.cart-button.added {
    animation: cartSuccess 0.6s ease;
}

@keyframes cartSuccess {
    0% { 
        background: var(--primary-color);
        transform: scale(1);
    }
    50% { 
        background: var(--success-color);
        transform: scale(1.1);
    }
    100% { 
        background: var(--primary-color);
        transform: scale(1);
    }
}

.cart-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cart-button.loading .cart-icon {
    animation: spin 1s linear infinite;
}

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

/* ===== TAMAMLA SAYFASI STİLLERİ ===== */
.completion-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.completion-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 16px;
}

/* Autocomplete Cari Hesap */
.autocomplete-container {
    position: relative;
    margin-bottom: 25px;
}

.autocomplete-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.autocomplete-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.autocomplete-item:hover {
    background: var(--primary-color);
    color: white;
}

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

.autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
}

/* Form Row */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    min-width: 120px;
    white-space: nowrap;
}

.form-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--success-color);
    flex: 1;
    text-align: right;
}

.form-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Net Toplam Vurgusu */
.net-total {
    background: linear-gradient(135deg, var(--primary-color), #28a745);
    color: white !important;
    border: none !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Çizgi Ayırıcı */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Checkbox Row */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox {
    display: none;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

.custom-checkbox:checked + .checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-checkbox:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    user-select: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    position: relative;
}

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

.btn-order:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.btn-invoice {
    background: var(--success-color);
    color: white;
}

.btn-invoice:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

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

.btn-iade:hover {
    background: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Disabled State */
.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .completion-container {
        padding: 15px;
    }

    .completion-card {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .form-label {
        min-width: auto;
        margin-bottom: 5px;
    }

    .checkbox-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        min-width: auto;
    }

}

@media (max-width: 480px) {
    .completion-card {
        padding: 15px;
    }

    .page-title {
        font-size: 24px;
    }

    .action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}