﻿html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #222;
}

* {
    box-sizing: border-box;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #1f2937;
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .menu a {
        color: white;
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(255,255,255,0.06);
    }

        .menu a:hover {
            background: rgba(255,255,255,0.15);
        }

    .menu .menu-child {
        margin-left: 18px;
        background: rgba(255,255,255,0.03);
    }

.logout-button,
.button {
    background: #2563eb;
    color: white;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

    .button.danger {
        background: #dc2626;
    }

    .button.secondary {
        background: #6b7280;
    }

.workarea {
    padding: 24px;
}

.panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
}

.link-button {
    border: 0;
    background: none;
    color: #2563eb;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.row-actions {
    display: flex;
    gap: 8px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    width: 360px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.1);
}

.validation {
    color: #dc2626;
    margin-top: 8px;
}

.hint {
    color: #6b7280;
    margin-top: 8px;
}

.checkbox-list label {
    display: block;
    margin-bottom: 8px;
}

.dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.15s ease-in-out;
    margin-top: 12px;
}

.dropzone.dragover {
    border-color: #2563eb;
    background: #dbeafe;
}

.dropzone.busy {
    opacity: 0.7;
    cursor: progress;
    pointer-events: none;
}

.import-file-name {
    margin-top: 12px;
    font-weight: 700;
}

.import-status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
}

.import-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.import-status.success {
    background: #dcfce7;
    color: #166534;
}

.import-status.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    color: #1d4ed8;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: import-spin 0.8s linear infinite;
    flex: 0 0 auto;
}

@keyframes import-spin {
    to {
        transform: rotate(360deg);
    }
}
