* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body {
    background-color: #97d638;
    color: #333;
    cursor: url('cursor.png'), auto;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #514ed4;
    padding: 15px 30px;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}
.nav-center {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    padding: 0 20px;
}
.search-input {
    padding: 9px 16px;
    font-size: 1.15rem;
    border: none;
    border-radius: 6px;
    width: 100%;
    max-width: 450px;
    outline: none;
    color: #080808 !important;
    font-weight: 600;
    opacity: 100;
}
.search-input:focus {
    border-color: #1498d5;
/*    box-shadow: 0 0 0 2px rgba(20, 152, 213, 0.15);*/
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */
.btn-secondary {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

.btn-primary {
    background-color: #1498d5;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #117bb0;
}

.btn-login {
    background-color: #1498d5;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-login:hover {
    background-color: #117bb0;
}

/* --- Page Layout --- */
.page-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* --- Sidebar --- */
.sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 20px 15px;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #148bd5;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    padding-left: 10px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    position: relative;
}

.category-link {
    display: block;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.category-link:hover {
    background-color: #f0f8ff;
    color: #1498d5;
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #f8f9fa;
}

h1#nadpis {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #111827;
}

.content-divider {
    border: 0;
    height: 1px;
    background-color: #e5e7eb;
    margin-bottom: 20px;
}

.empty-catalog-text {
    color: #6b7280;
}

/* --- Filter Panel --- */
.filter-panel {
    display: none;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-title {
    margin-bottom: 12px;
    color: #1498d5;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 4px;
}

.filter-input-number {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 130px;
}

.filter-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
}

#filter-velikost {
    width: 110px;
}

#filter-tolerance {
    width: 100px;
}

.filter-actions button {
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

#btn-apply-filters {
    background-color: #1498d5;
    color: white;
    border: none;
}

#btn-reset-filters {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    margin-left: 5px;
}

/* --- Modal / Overlay --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 40%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5%;
    right: 3.0%;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6b7280;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1.25rem;
}

.form-error {
    color: red;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.hidden-form {
    display: none;
}

.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-tab {
    flex: 10;
    padding: 10px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
}

.modal-tab.active {
    color: #1498d5;
    border-bottom: 2px solid #1498d5;
}
