html {
    height: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #edf2fb 0%, #dbeafe 40%, #e0e7ff 100%);
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    width: 100%;
    overflow-x: hidden;
}

.login-container {
    background: #ffffff;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    text-align: center;
    width: 360px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.login-container h2 {
    margin-bottom: 24px;
    font-size: 28px;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.login-container input {
    width: 100%;
    padding: 13px 14px;
    margin: 10px 0;
    border: 1px solid #cbd5f5;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
}

.login-container button {
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.error {
    color: #dc2626;
    margin-top: 12px;
}

.form-container {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 42px;
    border-radius: 28px;
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.12);
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.form-container.results {
    max-width: 1200px;
}

.form-container h2 {
    margin-bottom: 12px;
    font-size: 32px;
    color: #0f172a;
    letter-spacing: 0.1em;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 22px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-card.compact {
    min-height: 150px;
}

.form-card h3 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.form-card label {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.form-container select,
.form-container input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-container select:focus,
.form-container input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.inline-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.inline-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-fields {
    margin-top: 12px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 18px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.meta-value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
}

.helper-text {
    margin: -4px 0 0;
    font-size: 12px;
    color: #64748b;
}

.helper-text.status {
    margin-top: 6px;
}

.form-container select:disabled,
.form-container input:disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
    color: #475569;
}

.span-2 {
    grid-column: 1 / -1;
}

.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 14px 38px;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: #fdfcff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 45px rgba(79, 70, 229, 0.4);
}

.hint {
    font-size: 13px;
    color: #64748b;
}

.table-wrapper {
    margin-top: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
    overflow: hidden;
    overflow-x: auto;
}

.table-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-size: 13px;
    color: #1e293b;
}

.toggle-control input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 960px;
}

.table-wrapper thead {
    background: linear-gradient(120deg, #eef2ff, #dbeafe);
}

.table-wrapper th,
.table-wrapper td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    white-space: nowrap;
}


.table-wrapper tbody tr:nth-child(odd) {
    background: #fff;
}

.table-wrapper tbody tr:nth-child(even) {
    background: #f8fafc;
}

.table-wrapper tbody tr:hover {
    background: #f1f5f9;
}

.table-wrapper th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hidden {
    display: none !important;
}
