* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f7f3e9; /* teplé světlé pozadí jako na referenčním webu */
    color: #3a2f22;
    line-height: 1.6;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* stejné neutrální pozadí jako na hlavní stránce */
    background-color: #f7f3e9;
}

.login-box {
    background: #fffdf6;
    padding: 40px 36px 32px;
    border-radius: 14px;
    border: 1px solid #efe2c3;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
}

.login-box h1 {
    text-align: center;
    color: #c79a3b;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
}

.login-box h2 {
    text-align: center;
    color: #5b4b34;
    margin-bottom: 28px;
    font-weight: 500;
    font-size: 18px;
}

.error-message {
    background-color: #fff3f3;
    color: #c0392b;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5b7b1;
}

.login-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Admin Page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

header {
    background: #ffffff;
    padding: 18px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #efe2c3;
}

header h1 {
    color: #c79a3b;
    font-size: 24px;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content {
    background: #ffffff;
    padding: 28px 30px 26px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0e4c7;
}

.actions {
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 9px 20px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #e5b454, #c79a3b);
    color: #fff;
    box-shadow: 0 3px 8px rgba(199, 154, 59, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #eac466, #cfa044);
    box-shadow: 0 3px 10px rgba(199, 154, 59, 0.4);
}

.btn-secondary {
    background-color: #f1efe8;
    color: #5b4b34;
    border: 1px solid #ddd3b8;
}

.btn-secondary:hover {
    background-color: #e4ddc9;
    color: #5b4b34;
    border: 1px solid #ddd3b8;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
    margin: 0 3px;
}

.btn-edit {
    background-color: #27ae60;
    color: white;
}

.btn-edit:hover {
    background-color: #229955;
    color: #ffffff;
}

.btn-delete {
    background-color: #c0392b;
    color: white;
}

.btn-delete:hover {
    background-color: #a93226;
    color: #ffffff;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fffdf7;
    border-radius: 10px;
    overflow: hidden;
}

thead {
    background-color: #fbf4e4;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    font-weight: 600;
    color: #495057;
}

tbody tr:hover {
    background-color: #fff7e6;
}

.text-center {
    text-align: center;
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.enabled {
    background-color: #e9f7ef;
    color: #1e7e34;
}

.status-badge.disabled {
    background-color: #f5f1e4;
    color: #8c7b5c;
}

/* Modal - Now using Bootstrap modal, old styles removed */
/* Bootstrap handles modal styling */

/* Delete confirmation modal styling */
#deleteModal .modal-header.bg-danger {
    background-color: #dc3545 !important;
}

#deleteModal .modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form - Now using Bootstrap form-control classes */
/* Custom form styles removed in favor of Bootstrap */

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Modal responsive styles now handled by Bootstrap */
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}
