/* Základní styly */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Navigace */
.navbar-brand {
    font-weight: 600;
}

/* Karty */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 600;
    border-bottom: none;
}

/* Formulářové prvky */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Produkt karty */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-inputs input {
    margin-bottom: 0.5rem;
}

/* Kategorie nadpisy */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.category-pivo {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.category-nealkoholicke {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-lahvove {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-vino {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-potraviny {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.category-alkohol {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.category-plyn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Alert zprávy */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Tlačítka */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast notifikace */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

/* Input group s tlačítky */
.input-with-controls {
    position: relative;
}

.quick-controls {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.quick-controls .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    flex: 1;
}

.quick-controls .btn-sm {
    font-size: 0.7rem;
}

.plus-minus-controls {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.plus-minus-controls .btn {
    flex: 1;
    font-weight: bold;
}

/* Responzivita */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .category-header {
        padding: 0.75rem;
        font-size: 1.1rem;
    }
    
    .quick-controls .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Tabulky */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* Admin stránky */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* Ikony */
.bi {
    vertical-align: middle;
}

/* Přihlašovací stránka */
.min-vh-100 {
    min-height: 100vh;
}

/* Datepicker */
input[type="date"] {
    cursor: pointer;
}

/* Responzivní úpravy */
@media (max-width: 767px) {
    h1.h3 {
        font-size: 1.3rem;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
    
    #reportDate {
        width: 100% !important;
        font-size: 16px; /* Zabrání zoomu na iOS */
    }
}

@media print {
    .navbar, .btn, #reportDate, .btn-group { 
        display: none !important; 
    }
    .card { 
        page-break-inside: avoid; 
    }
}

/* Responzivní ovládací prvky */
.controls-wrapper {
    width: 100%;
}

@media (min-width: 768px) {
    .controls-wrapper {
        width: auto;
    }
}

@media (max-width: 767px) {
    h1.h3 {
        font-size: 1.3rem;
        width: 100%;
    }
    
    .btn-group,
    #reportDate {
        width: 100%;
    }
    
    #reportDate {
        font-size: 16px; /* Zabrání automatickému zoomu na iOS */
    }
}

@media print {
    .navbar, .btn, #reportDate, .btn-group, .controls-wrapper { 
        display: none !important; 
    }
}