/* ===================================
   Restoran POS - Custom CSS
   =================================== */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    --bg-soft: #f8fafc;
    --border-soft: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-soft);
    color: #1e293b;
}

/* Navbar */
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    font-weight: 500;
    transition: color 0.15s ease;
}

.navbar .nav-link i {
    margin-right: 4px;
}

/* Kartice */
.card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--border-soft);
    font-weight: 600;
}

/* Stat kartice */
.stat-card {
    border-left: 4px solid var(--primary);
    background: white;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.info { border-left-color: var(--info); }

/* Login/register */
.auth-card {
    max-width: 420px;
    margin: 4rem auto;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.auth-icon {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: var(--primary);
}

/* Tabela */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table tbody tr {
    transition: background 0.1s ease;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Badge statusa */
.badge-status {
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.75rem;
}

.badge-u_pripremi { background-color: #fef3c7; color: #92400e; }
.badge-spremna { background-color: #dbeafe; color: #1e40af; }
.badge-zavrsena { background-color: #d1fae5; color: #065f46; }
.badge-placena { background-color: #e0e7ff; color: #3730a3; }
.badge-zatvorena { background-color: #f1f5f9; color: #475569; }

/* Stavke menija - kartice */
.menu-item-card {
    height: 100%;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-soft);
    transition: all 0.2s ease;
}

.menu-item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.menu-item-card .item-name {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.menu-item-card .item-desc {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    min-height: 2.5em;
}

.menu-item-card .item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.menu-item-card .item-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.menu-item-card.unavailable {
    opacity: 0.6;
    background: #fef2f2;
}

/* Stolovi grid */
.sto-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sto-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.sto-card .sto-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.sto-card .sto-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sto-card .sto-mesta {
    color: #64748b;
    font-size: 0.875rem;
}

/* Forme */
.form-label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.85rem;
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Dugmad */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    transition: all 0.15s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Naslov sekcije */
.page-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Lager - low warning */
.row-low {
    background-color: #fef2f2 !important;
}

.row-low td {
    color: #991b1b;
    font-weight: 500;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Animacija */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

main > .container {
    animation: fadeIn 0.25s ease;
}
