* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 16px;
    font-family: Arial, sans-serif;
    background: #f3f5f8;
    color: #202938;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

h1 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd2dc;
    border-radius: 5px;
    font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #7ba7f7;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

button,
.button-secondary {
    display: inline-block;
    padding: 11px 17px;
    border: 0;
    border-radius: 5px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

button {
    color: white;
    background: #2563eb;
}

button:hover {
    background: #1d4ed8;
}

.button-secondary {
    color: #202938;
    background: #e5e9f0;
}

.message {
    margin: 20px 0;
    padding: 14px 18px;
    border-radius: 5px;
}

.error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.container-wide {
    max-width: 1200px;
}

.message.success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.button-primary {
    display: inline-block;
    padding: 11px 17px;
    border-radius: 5px;
    color: #ffffff;
    background: #2563eb;
    text-decoration: none;
}

.button-primary:hover {
    background: #1d4ed8;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f9;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8fafc;
}

.description-cell {
    min-width: 180px;
    max-width: 300px;
    overflow-wrap: anywhere;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.delete-link {
    color: #b91c1c;
    text-decoration: none;
}

.delete-link:hover {
    color: #7f1d1d;
    text-decoration: underline;
}

.button-danger {
    color: #ffffff;
    background: #dc2626;
}

.button-danger:hover {
    background: #b91c1c;
}

dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    margin: 24px 0;
}

dt,
dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* Spoločná hlavička */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1f2937;
    color: #ffffff;
    border-bottom: 3px solid #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);    
}

.site-header-inner {
    /*
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    */
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-logo {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation {
    /*
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.main-navigation a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
}

.main-navigation a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.user-role {
    color: #d1d5db;
    font-size: 12px;
}

.button-logout {
    background: #374151;
    color: #ffffff;
    border: 1px solid #6b7280;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.button-logout:hover {
    background: #4b5563;
}

/* Pätička */
.site-footer {
    margin-top: 40px;
    padding: 18px 20px;
    background: #f3f4f6;
    border-top: 1px solid #d1d5db;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobilné zariadenia */
@media (max-width: 700px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-navigation {
        gap: 12px;
    }

    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
}

.container-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.status-active {
    color: #15803d;
    font-weight: 600;
}

.status-locked {
    color: #dc2626;
    font-weight: 700;
}

.status-expired {
    color: #a16207;
    font-weight: 600;
}

