﻿/* kasseapparat.css - Komplet styling til kasseapparat */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.main-grid {
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    grid-gap: 20px;
    min-height: 500px;
}

.left-panel {
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.center-panel {
    display: flex;
    flex-direction: column;
}

.right-panel {
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.input-group {
    margin-bottom: 15px;
}

    .input-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .input-group input, .input-group textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

        .input-group input:focus, .input-group textarea:focus {
            outline: none;
            border-color: #007acc;
        }

#cart {
    border: 1px solid #ddd;
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cart-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

    .cart-item.selected {
        background-color: #e3f2fd;
        padding: 5px;
        margin: -5px;
        border-radius: 3px;
    }

.total-display {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
}

.button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 5px 0;
    width: 100%;
}

.button-primary {
    background-color: #007acc;
    color: white;
}

.button-secondary {
    background-color: #6c757d;
    color: white;
}

.button-danger {
    background-color: #dc3545;
    color: white;
}

.button-success {
    background-color: #28a745;
    color: white;
}

.button-azure {
    background-color: #0078d4;
    color: white;
}

.button:hover {
    opacity: 0.8;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dynamic-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.item-button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

    .item-button:hover {
        opacity: 0.85;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.item-button-color-0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.item-button-color-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.item-button-color-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.item-button-color-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.item-button-color-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.item-button-color-5 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.item-button-color-6 {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.item-button-color-7 {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
}

.item-button-color-8 {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #333;
}

.item-button-color-9 {
    background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
    color: #333;
}

.numpad-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.num-button {
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #adb5bd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

    .num-button:hover {
        background-color: #e9ecef;
        transform: scale(1.05);
    }

    .num-button:active {
        transform: scale(0.95);
    }

.function-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.func-button {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.func-button-cash {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    grid-column: span 2;
}

.func-button-qty {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.func-button-clear {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    color: white;
}

.func-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.status-message {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #333;
}

.receipt-header {
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

.receipt-footer {
    text-align: center;
    margin: 10px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: black;
    }

.data-status {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.data-loaded {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.data-empty {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.sync-status {
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 12px;
}

.sync-success {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.sync-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.sync-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.json-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}
