
:root {
    font-family: Arial, sans-serif;
    color: #1e293b;
    background: #f4f7fb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

.header {
    background: #15345c;
    color: white;
    padding: 20px 24px;
    box-shadow: 0 3px 12px #00000012;
}

.header-content {
    max-width: 1150px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header h1 {
    margin: 0;
    font-size: 25px;
}

.container {
    max-width: 1150px;
    margin: 42px auto;
    padding: 0 20px;
}

.auth-card {
    max-width: 440px;
    margin: 70px auto;
    background: white;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 10px 35px #17255412;
}

h2 {
    margin-top: 0;
}

.muted {
    color: #64748b;
    line-height: 1.6;
}

.tabs {
    display: flex;
    gap: 10px;
    margin: 26px 0;
}

.tab {
    flex: 1;
    background: #e9eff7;
    color: #334155;
}

    .tab.active {
        background: #15345c;
        color: white;
    }

label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    background: white;
}

    input:focus {
        outline: 2px solid #93c5fd;
        border-color: #2563eb;
    }

button {
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.primary {
    background: #2563eb;
    color: white;
}

    .primary:hover:not(:disabled) {
        background: #1d4ed8;
    }

.secondary {
    background: #e2e8f0;
    color: #1e293b;
}

.full-width {
    width: 100%;
    margin-top: 24px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.toolbar {
    background: white;
    padding: 18px;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

    .toolbar input[type="search"] {
        flex: 1;
        min-width: 190px;
    }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .checkbox-label input {
        width: auto;
    }

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.item-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 5px 20px #1725540c;
}

    .item-card h3 {
        margin-top: 0;
    }

    .item-card button {
        width: 100%;
        margin-top: 15px;
    }

.status {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
}

    .status.available {
        color: #166534;
        background: #dcfce7;
    }

    .status.unavailable {
        color: #991b1b;
        background: #fee2e2;
    }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 35px 0;
}

.message {
    min-height: 20px;
    line-height: 1.5;
}

    .message.error {
        color: #b91c1c;
    }

    .message.success {
        color: #15803d;
    }

dialog {
    border: none;
    border-radius: 16px;
    padding: 30px;
    width: min(420px, 92vw);
    box-shadow: 0 20px 70px #0003;
}

    dialog::backdrop {
        background: #0f172a99;
    }

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .header-content {
        flex-wrap: wrap;
    }

    .container {
        margin-top: 25px;
    }

    .auth-card {
        margin: 20px auto;
        padding: 24px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .checkbox-label {
        align-self: flex-start;
    }

    .item-card {
        min-width: 0;
        overflow-wrap: anywhere;
    }

        .item-card h3,
        .item-card p {
            overflow-wrap: anywhere;
        }

}
