/* ===== base.css - Full Version (Rem/Responsive Optimized) ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 1rem;
    background: #f4f6f9;
    color: #222;
    line-height: 1.5;
}

h2, h3 { 
    margin-top: 0; 
    text-align: center; 
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== Cards & Boxes ===== */
.login-box, .card {
    max-width: 450px;
    margin: 2.5rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ===== Buttons & Links ===== */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger {
    display: block;
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    margin-bottom: 0.625rem;
    transition: background 0.2s;
}

.btn-primary { background: #007bff; color: white; }
.btn-primary:hover { background: #0069d9; }

.btn-secondary { background: #28a745; color: white; }
.btn-secondary:hover { background: #218838; }

.btn-outline { background: transparent; color: #007bff; border: 1px solid #007bff; }
.btn-outline:hover { background: #f0f7ff; }

.btn-danger { 
    background: transparent; 
    color: #dc3545; 
    font-size: 0.875rem;
    padding: 0.625rem;
}

/* ===== Forms & Inputs ===== */
label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
    color: #444; 
}

input[type="text"], 
input[type="password"], 
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #28a745;
    outline: none;
}

.error-box {
    background: #fff5f5;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #c53030;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* ===== Table & Inventory List ===== */
.table-wrapper { 
    overflow-x: auto; 
    margin-bottom: 1.25rem; 
}

.order-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #fff; 
    border-radius: 8px; 
    overflow: hidden; 
}

.order-table th { 
    background: #f8f9fa; 
    padding: 0.75rem; 
    font-size: 0.875rem; 
    border-bottom: 2px solid #dee2e6; 
    text-align: left;
}

.order-table td { 
    padding: 0.75rem; 
    border-bottom: 1px solid #eee; 
    vertical-align: middle;
    transition: background-color 0.2s;
}

/* --- ΠΡΟΣΘΗΚΗ: Zebra Striping & Hover --- */
.order-table tbody tr:nth-child(even) {
    background-color: #eeeeee;
}

.order-table tbody tr:hover td {
    background-color: #d4edda; /* Απαλό πράσινο highlight */
}

.item-name { 
    font-weight: 600; 
    word-break: break-word; 
}

.customer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4d4d4d;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    word-break: break-word;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 1.25rem; }

/* ===== Mobile Optimization (Responsive) ===== */
@media (max-width: 768px) {
    body { padding: 0.5rem; }

    .order-table thead { 
        display: none; 
    }

.order-table tr { 
        display: block; 
        margin-bottom: 1rem; 
        border: 1px solid #ddd; /* Λίγο πιο σκούρο περίγραμμα για να ξεχωρίζουν */
        padding: 0.75rem; 
        border-radius: 8px; 
        background-color: #fff; /* Default λευκό */
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Μια μικρή σκιά για βάθος */
    }

    /* Επαναφορά του Zebra για τις κάρτες στο κινητό */
    .order-table tbody tr:nth-child(even) {
        background-color: #f2f2f2 !important; /* Ελαφρύ γκρι για τις ζυγές κάρτες */
    }

    .order-table td { 
        display: block; 
        border: none; 
        padding: 0.4rem 0; 
    }

    .order-table td::before { 
        content: attr(data-label); 
        font-weight: bold; 
        display: block; 
        color: #888; 
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }

    .input-qty {
        max-width: 100% !important;
    }
}

/* ===== Components & Status Badges ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

/* ===== Feedback Messages ===== */
.error-inline {
    color: #c53030;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #feb2b2;
    text-align: center;
}

.no-data-box {
    color: #666;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px dashed #ccc;
    text-align: center;
}