/* erp/assets/style.css */

/* --- 1. ГЛОБАЛНИ ПРОМЕНЛИВИ (Темата) --- */
:root {
    --primary-color: #FF8800;      /* Оранжев основен */
    --primary-hover: #e07b00;      /* Тъмен оранж (за ховър) */
    --text-color: #333333;         /* Основен текст */
    --bg-color: #f4f6f8;           /* Фон на сайта */
    --white: #ffffff;
    --gray-light: #e9ecef;
    --danger: #dc3545;
    --success: #28a745;
    --header-height: 60px;
    --footer-height: 40px;
    --radius: 8px;                 /* Заобляне на ъглите */
    --shadow: 0 4px 12px rgba(0,0,0,0.1); /* Сянка за кутиите */
}

/* --- 2. БАЗОВИ СТИЛОВЕ --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-bottom: 70px; /* Място за футъра */
    line-height: 1.5;
}

h1, h2, h3 { margin-top: 0; font-weight: 600; color: #222; }
a { text-decoration: none; color: inherit; }

/* --- 3. ЛОГИН & ИЗБОР НА ОБЕКТ (Центрирани кутии) --- */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 5px solid var(--primary-color); /* Оранжев акцент отгоре */
}

/* --- 4. ФОРМИ И БУТОНИ --- */
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.95rem; color: #555; }

/* Полета (Input/Select) */
input[type="text"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.15);
}

/* Главен бутон */
.btn-primary, .btn-save, .btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover, .btn-save:hover, .btn-login:hover {
    background-color: var(--primary-hover);
}
.btn-primary:active { transform: scale(0.98); }

/* Вторичен бутон (Отказ) */
.btn-secondary, .btn-cancel {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
}
.btn-secondary:hover { background-color: #5a6268; }

/* Малък бутон (за таблици) */
.btn-small {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- 5. ТАБЛИЦИ --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.data-table th {
    background-color: #f9fafb;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    color: #555;
}
.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background-color: #fffcf5; } /* Лек оранжев нюанс при ховър */

/* Статус баджове */
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge-success { background: #e6f9ed; color: #28a745; }
.badge-danger { background: #ffebee; color: #dc3545; }

/* Скриване на стандартните стрелки на input type=number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-qty {
    background: #252525;
    border: 1px solid #333;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-qty:hover {
    background: #333;
    border-color: #FF8800;
    color: #FF8800;
}
/* Стил за екрана за Ресто */
.cash-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.denom-btn {
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px 5px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.denom-btn:hover { transform: scale(1.05); filter: brightness(1.2); }
.denom-btn:active { transform: scale(0.95); }

/* Цветове на Евро банкнотите */
.eur-5 { background: #9da3a8; border-color: #7b838a; } /* Сиво */
.eur-10 { background: #d65b5b; border-color: #b33a3a; } /* Червено */
.eur-20 { background: #5b89d6; border-color: #3a6ab3; } /* Синьо */
.eur-50 { background: #e8a64e; border-color: #c98528; } /* Оранжево */
.eur-100 { background: #76bc76; border-color: #4e9e4e; } /* Зелено */
.eur-coin { background: #ccac00; border-color: #a38900; border-radius: 50%; width: 60px; height: 60px; padding: 0; margin: 0 auto;}

.change-display {
    background: #000;
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.change-val { font-size: 2.5rem; font-weight: 900; display: block; }
.change-label { color: #555; font-size: 0.8rem; text-transform: uppercase; }
/* Основният бутон - контейнер */
.denom-btn {
    position: relative;
    height: 80px; /* Фиксирана височина за всички */
    padding: 0;   /* Премахваме паддинга, за да може снимката да изпълни всичко */
    overflow: hidden;
    background: #222; /* Фон, ако снимката зарежда бавно */
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стил за самата снимка вътре */
.cash-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Запазва пропорциите и вписва цялата банкнота */
    transition: transform 0.2s;
}

/* За монетите - ако искаш да са кръгли */
.eur-coin {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.denom-btn:hover .cash-img {
    transform: scale(1.1); /* Лек зуум при посочване */
}
/* --- 6. ХЕДЪР И ФУТЪР (Основни настройки) --- */
/* (Специфичните стилове за хедъра оставихме в header.php, но може да ги преместиш тук) */