* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
    font-size: 18px;
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 12px;
}

.header {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
}

.logo {
    width: 100%;
    max-width: 290px;
    height: auto;
    margin-bottom: 2px;
}

h1 {
    font-size: 20px;
    margin: 0;
    line-height: 1.1;
}

h2 {
    font-size: 22px;
    margin-top: 0;
}

h3 {
    font-size: 20px;
    margin-top: 0;
}

.subtitle {
    font-size: 12px;
    color: #6b7280;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    font-size: 17px;
}

.user-info {
    font-size: 15px;
}

.user-info p {
    margin: 4px 0;
}

.nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.nav a,
.btn,
.logout-link {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
}

.open-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.open-button:active {
    transform: scale(0.98);
}

.door-card h3 {
    font-size: 18px;
    margin: 0 0 6px;
}

.door-meta {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 10px;
}

.empty {
    text-align: center;
    color: #6b7280;
}

.footer {
    margin-top: 16px;
}

input,
select,
textarea,
button {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 18px;
}

label {
    font-size: 17px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    overflow-x: auto;
    display: block;
}

th,
td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
    text-align: left;
    font-size: 15px;
}

p {
    margin: 6px 0;
}

details summary {
    cursor: pointer;
    font-weight: bold;
}

textarea {
    resize: vertical;
}

@media (min-width: 700px) {

    .nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .open-button {
        max-width: 320px;
    }

    input,
    select,
    textarea {
        max-width: 420px;
    }

    table {
        display: table;
    }
}

@media (max-width: 700px) {

    body {
        font-size: 19px;
    }

    input,
    select,
    textarea,
    button {
        font-size: 19px;
    }

    .btn,
    .open-button {
        font-size: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    .logo {
        max-width: 320px;
    }

    .card {
        padding: 10px;
    }
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.admin-menu a {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
}

.admin-menu a:active {
    transform: scale(0.98);
}

@media (min-width: 700px) {

    .admin-menu {
        grid-template-columns: repeat(3, 1fr);
    }

}