/* ====== GLOBAL ====== */

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #eef2f0;
    margin: 0;
    padding: 0;
    color: #1f2d27;
}

h2, h3 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2d27;
}

.subtitle {
    font-size: 15px;
    color: #55635b;
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    display: block;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #cdd5d0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background: #4a7c59;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #3b6347;
}

.error {
    color: #c94c4c;
    font-size: 14px;
    margin-top: 10px;
}

.success {
    color: #4a7c59;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

/* Plakietka ostrzeżenia dla przesyłania plików ZIP */
.zip-alert {
    background-color: #fce8e6;
    border-left: 4px solid #c94c4c;
    color: #a83232;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 8px;
    border-radius: 0 6px 6px 0;
    line-height: 1.4;
}

/* ====== VIEWS ====== */

#loginView, #forgotView {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#loginView button, #forgotView button {
    width: 100%;
    margin-top: 20px;
}

.forgot {
    text-align: center;
    margin-top: 15px;
}
.forgot button {
    background: none !important;
    color: #55635b !important;
    text-decoration: underline;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px;
    width: auto !important;
}

/* ====== APPLICATION MAIN LAYOUT ====== */

.top-bar {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #dfe5e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h1 {
    margin: 0;
    font-size: 20px;
    color: #1f2d27;
}

.top-bar .sub {
    font-size: 13px;
    color: #708278;
}

.main-layout {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding: 25px;
    box-sizing: border-box;
}

.left-column {
    display: table-cell;
    width: 35%;
    padding-right: 20px;
    vertical-align: top;
}

.right-column {
    display: table-cell;
    width: 65%;
    vertical-align: top;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* ====== LISTA OBIEKTÓW ====== */

.object-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    background: #f7faf8;
    border: 1px solid #d0d7d3;
    border-radius: 6px;
    cursor: pointer;
}

.object-checkbox:hover {
    background: #eef5f0;
}

.object-checkbox input {
    width: auto;
    margin: 0;
}

/* ====== TABELA ====== */

#recordsTable {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
}

#recordsTable th {
    background: #dfe7e3;
    padding: 12px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #cdd5d0;
}

#recordsTable td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

#recordsTable tr:hover {
    background: #f7faf8;
}

#recordsTable .wide {
    width: 45%;
}

#recordsTable .date-cell {
    width: 95px;
    white-space: pre-line;
    line-height: 1.4;
    font-size: 13px;
    color: #3b4d45;
}

#recordsInfo {
    font-size: 13px;
    color: #55635b;
    margin-bottom: 5px;
    font-weight: 500;
}

a {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}