/**
 * Market Satis Sistemi - Stiller
 * @version 2.0.0
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ===== LOGIN EKRANI ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-header p {
    color: #7f8c8d;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.login-form input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.login-btn:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
}

.login-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== ANA UYGULAMA ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-top h1 {
    font-size: 1.6rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#currentUserName {
    font-weight: 500;
}

.user-role {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-role.admin {
    background: #e74c3c;
}

.user-role.cashier {
    background: #27ae60;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header Stats */
.header-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #3498db;
}

.stat-suffix {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Navigation */
nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #34495e;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s;
}

.tab-btn:hover {
    background: #4a6278;
}

.tab-btn.active {
    background: #3498db;
}

/* Tab Content */
.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

/* ===== SATIS EKRANI ===== */
.sales-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .sales-container {
        grid-template-columns: 1fr;
    }
}

.barcode-section,
.cart-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.barcode-section h2,
.cart-section h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
}

.input-group button {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.input-group button:hover {
    background: #2980b9;
}

/* Kamera Butonu */
.camera-btn {
    padding: 12px 15px !important;
    background: #27ae60 !important;
    font-size: 1.2rem !important;
}

.camera-btn:hover {
    background: #219a52 !important;
}

/* Barkod Tarayıcı */
.barcode-scanner {
    margin-top: 15px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.barcode-scanner #scannerVideo {
    width: 100%;
    min-height: 280px;
    max-height: 350px;
    object-fit: cover;
}

.scanner-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.close-scanner-btn {
    width: 40px;
    height: 40px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-scanner-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.torch-btn {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.torch-btn:hover {
    background: #3498db;
    transform: scale(1.1);
}

.torch-btn.active {
    background: #f1c40f;
    color: #2c3e50;
}

/* Tarama rehberi */
.scanner-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 320px;
    height: 100px;
    border: 3px solid rgba(46, 204, 113, 0.8);
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.4);
}

.scanner-guide::before,
.scanner-guide::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #2ecc71;
    border-style: solid;
}

.scanner-guide::before {
    top: -3px;
    left: -3px;
    border-width: 4px 0 0 4px;
    border-radius: 8px 0 0 0;
}

.scanner-guide::after {
    top: -3px;
    right: -3px;
    border-width: 4px 4px 0 0;
    border-radius: 0 8px 0 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2ecc71, transparent);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { top: 10%; opacity: 0.5; }
    50% { top: 85%; opacity: 1; }
}

.scanner-hint {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.85rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    z-index: 5;
}

.product-info {
    margin-top: 15px;
    padding: 15px;
    background: #e8f6ff;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

#foundProductPrice {
    font-weight: bold;
    color: #27ae60;
}

/* Cart */
.cart-items {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    margin-bottom: 15px;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 50px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.cart-item-qty button:hover {
    background: #2980b9;
}

.cart-item-qty span {
    min-width: 30px;
    text-align: center;
}

.cart-item-total {
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

.remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #c0392b;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 15px;
    background: #2c3e50;
    color: white;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.payment-option:hover {
    border-color: #3498db;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option input[type="radio"]:checked + span {
    color: #3498db;
    font-weight: 600;
}

.payment-option:has(input:checked) {
    border-color: #3498db;
    background: #e8f6ff;
}

.complete-btn {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.complete-btn:hover:not(:disabled) {
    background: #219a52;
}

.complete-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* ===== URUN YONETIMI ===== */
.product-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.product-form h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    padding: 12px 24px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #219a52;
}

/* Product List */
.product-list {
    background: white;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-header h2 {
    color: #2c3e50;
    margin: 0;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    width: 250px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #3498db;
    outline: none;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #2c3e50;
    color: white;
    font-weight: 500;
}

tr:hover {
    background: #f5f5f5;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 30px;
}

.delete-btn,
.detail-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

.detail-btn {
    background: #3498db;
    color: white;
}

.detail-btn:hover {
    background: #2980b9;
}

/* ===== SATIS GECMISI ===== */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-header h2 {
    color: #2c3e50;
    margin: 0;
}

.history-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-filter {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.date-filter:focus {
    border-color: #3498db;
    outline: none;
}

.filter-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #2980b9;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.page-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f5f5f5;
    border-color: #3498db;
}

.page-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.sale-detail-header {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sale-detail-header p {
    margin-bottom: 8px;
}

.sale-detail-header p:last-child {
    margin-bottom: 0;
}

.sale-items-table {
    margin-top: 15px;
}

/* ===== BILDIRIM ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
    }

    .stat-item {
        flex: 1;
        justify-content: center;
    }

    .user-info {
        width: 100%;
        justify-content: space-between;
    }

    .login-container {
        padding: 30px 20px;
    }

    .search-box input {
        width: 100%;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .history-filters {
        width: 100%;
    }

    .date-filter {
        flex: 1;
    }

    nav {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 15px;
    }

    .tab-content {
        padding: 15px;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-item-info {
        width: 100%;
    }

    .payment-methods {
        flex-direction: column;
    }

    th, td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* ===== KULLANICI YONETIMI ===== */
.users-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.user-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.user-form h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.users-list h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.form-group select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
}

.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

/* ===== EDIT BUTTON ===== */
.edit-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    background: #f39c12;
    color: white;
}

.edit-btn:hover {
    background: #d68910;
}

/* Action Buttons Group */
.action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== STATUS BADGES ===== */
.status-active {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f8d7da;
    color: #721c24;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cancel-btn {
    padding: 12px 24px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

/* ===== RESPONSIVE - KULLANICI YONETIMI ===== */
@media (max-width: 768px) {
    .action-btns {
        flex-direction: column;
    }

    .action-btns button {
        width: 100%;
    }
}

/* ===== PAKET SIPARISLER ===== */
.packages-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.packages-header h2 {
    color: #2c3e50;
    margin: 0;
}

.packages-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.delivery-fee-setting {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #a5d6a7;
}

.delivery-fee-setting label {
    font-weight: 500;
    color: #2e7d32;
    white-space: nowrap;
}

.fee-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.fee-input-group input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #a5d6a7;
    border-radius: 5px;
    font-size: 1rem;
    text-align: right;
}

.fee-input-group input:focus {
    outline: none;
    border-color: #2e7d32;
}

.fee-currency {
    color: #2e7d32;
    font-weight: 500;
}

.save-fee-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.save-fee-btn:hover {
    background: #1b5e20;
}

.packages-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.packages-filters select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}

.packages-filters select:focus {
    border-color: #3498db;
    outline: none;
}

.refresh-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: #2980b9;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.package-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.package-card.status-pending {
    border-left: 4px solid #f39c12;
}

.package-card.status-preparing {
    border-left: 4px solid #3498db;
}

.package-card.status-ready {
    border-left: 4px solid #27ae60;
}

.package-card.status-completed {
    border-left: 4px solid #95a5a6;
    opacity: 0.7;
}

.package-card.status-cancelled {
    border-left: 4px solid #e74c3c;
    opacity: 0.5;
}

.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.package-order-no {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.package-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.package-status.pending {
    background: #fef3cd;
    color: #856404;
}

.package-status.preparing {
    background: #cce5ff;
    color: #004085;
}

.package-status.ready {
    background: #d4edda;
    color: #155724;
}

.package-status.completed {
    background: #e2e3e5;
    color: #383d41;
}

.package-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.package-customer {
    margin-bottom: 15px;
}

.package-customer .name {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
}

.package-customer .phone {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.package-customer .address {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.package-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.package-items-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.package-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
}

.package-time {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

.package-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.package-card-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-prepare {
    background: #3498db;
    color: white;
}

.btn-prepare:hover {
    background: #2980b9;
}

.btn-ready {
    background: #f39c12;
    color: white;
}

.btn-ready:hover {
    background: #d68910;
}

.btn-complete {
    background: #27ae60;
    color: white;
}

.btn-complete:hover {
    background: #219a52;
}

.btn-cancel {
    background: #e74c3c;
    color: white;
}

.btn-cancel:hover {
    background: #c0392b;
}

.btn-detail {
    background: #95a5a6;
    color: white;
}

.btn-detail:hover {
    background: #7f8c8d;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}

/* Modal Large */
.modal-lg {
    max-width: 700px;
}

/* Package Details in Modal */
.package-detail-section {
    margin-bottom: 20px;
}

.package-detail-section h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #3498db;
}

.package-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.package-detail-info p {
    margin: 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.package-detail-info p strong {
    color: #2c3e50;
}

.package-items-table {
    width: 100%;
    margin-top: 10px;
}

.package-items-table th {
    background: #f8f9fa;
    color: #2c3e50;
}

.package-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.package-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .packages-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .packages-filters {
        width: 100%;
    }

    .packages-filters select {
        flex: 1;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-detail-info {
        grid-template-columns: 1fr;
    }

    .package-actions {
        flex-direction: column;
    }

    .package-actions button {
        width: 100%;
    }
}

/* ===== HAVA DURUMU VE KUR WIDGET ===== */
.info-widget {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.widget-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.weather-widget #weatherIcon {
    font-size: 1.3rem;
}

.weather-widget #weatherTemp {
    font-weight: bold;
    color: #f1c40f;
}

.weather-widget #weatherCity {
    opacity: 0.8;
    font-size: 0.85rem;
}

.currency-widget .currency-label {
    opacity: 0.7;
    font-size: 0.8rem;
}

.currency-widget #usdRate,
.currency-widget #eurRate {
    font-weight: bold;
    color: #2ecc71;
    margin-right: 10px;
}

/* ===== KISAYOL URUNLER BAR ===== */
.shortcut-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #2c3e50;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 20px;
    overflow-x: auto;
}

.shortcut-bar-label {
    color: #ecf0f1;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.shortcut-items {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0;
}

.shortcut-item {
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.shortcut-item:hover {
    background: #2980b9;
    transform: scale(1.02);
}

.shortcut-item .shortcut-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.shortcut-item .shortcut-price {
    font-size: 0.75rem;
    opacity: 0.85;
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.empty-shortcuts {
    color: #95a5a6;
    font-size: 0.85rem;
    font-style: italic;
}

/* ===== FAVORİ YILDIZ ===== */
.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #ddd;
    transition: all 0.3s;
    padding: 5px;
}

.fav-btn:hover {
    color: #f1c40f;
    transform: scale(1.2);
}

.fav-btn.active {
    color: #f1c40f;
}

/* ===== URUN LISTESI MODAL ===== */
.product-list-modal {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 350px;
    overflow: hidden;
    z-index: 100;
    margin-top: 5px;
}

.product-list-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.product-list-header input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
}

.product-list-header input:focus {
    border-color: #3498db;
    outline: none;
}

.product-list-header button {
    width: 32px;
    height: 32px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

.product-list-header button:hover {
    background: #c0392b;
}

.product-list-items {
    max-height: 280px;
    overflow-y: auto;
}

.product-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.product-list-item:hover {
    background: #e8f6ff;
}

.product-list-item:last-child {
    border-bottom: none;
}

.product-list-item .product-info-text {
    flex: 1;
}

.product-list-item .product-info-text .name {
    font-weight: 500;
    color: #2c3e50;
}

.product-list-item .product-info-text .barcode {
    font-size: 0.8rem;
    color: #999;
}

.product-list-item .price {
    font-weight: bold;
    color: #27ae60;
}

.product-list-empty {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Barcode section position relative for modal */
.barcode-section {
    position: relative;
}

@media (max-width: 768px) {
    .info-widget {
        flex-direction: column;
        gap: 10px;
    }

    .widget-item {
        width: 100%;
        justify-content: center;
    }

    .shortcut-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .shortcut-bar-label {
        font-size: 0.8rem;
    }

    .shortcut-items {
        width: 100%;
    }
}
