:root {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
    background: #f2f2f2;
}

* {
    box-sizing: border-box;
}

html {
    background-color: #f2f2f2;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: 
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 100%
        ),
        url('ChatGPT Image 14_05_2026, 15_05_15.png') repeat-y left top / 100% auto #f2f2f2;
}

.page-background {
    display: none;
}

.app-shell {
    max-width: 1180px;
    margin: 16px auto 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.top-bar h1 {
    font-size: 1.45rem;
    margin: 0;
}

.status-box {
    background: #eef5ff;
    border: 1px solid #c7d9ff;
    color: #0f4db8;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
}

.group {
    margin-bottom: 18px;
    display: grid;
    gap: 12px;
}

.group-top label,
.group-middle label,
.group-bottom label,
.ajustes-grid label,
.detail-card label {
    display: inline-block;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
    font-size: 0.85rem;
    line-height: 1.5;
    background: #ffffff;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    text-align: left;
    white-space: normal;
    justify-self: start;
    align-self: start;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.group-top label:hover,
.group-middle label:hover,
.group-bottom label:hover,
.ajustes-grid label:hover,
.detail-card label:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.18);
}

.group-top .line-row,
.group-middle .line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.group-top .line-row label,
.group-middle .line-row label {
    flex: 0 0 auto;
}

.comment-btn {
    background: #eef0ff;
    border: 1px solid #bbc7ff;
    color: #1a2d83;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 120px;
}

.comment-btn:hover {
    background: #d8e1ff;
}

.ajustes-group {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ajustes-group h2 {
    margin-top: 0;
    font-size: 1rem;
}

.ajustes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.small-checkbox {
    grid-column: 1 / span 2;
}

.detail-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 12px;
    line-height: 1.55;
    color: #2a2a2a;
    font-size: 0.85rem;
}

.group-middle,
.group-bottom {
    display: grid;
    gap: 10px;
}

.group-bottom label {
    padding-right: 10px;
}

.indent {
    margin-left: 24px;
}

.actions {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}

#exportBtn,
#importBtn,
#clearBtn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

#exportBtn {
    background: #2b6eeb;
    color: white;
}

#importBtn {
    background: #2b6eeb;
    color: white;
}

#clearBtn {
    background: #ececec;
    color: #333;
}

#exportBtn:hover,
#importBtn:hover {
    background: #1f57d0;
}

#clearBtn:hover {
    background: #d8d8d8;
}

.section-divider {
    height: 3px;
    background: #333;
    margin: 14px 0;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .app-shell {
        padding: 16px;
    }

    .ajustes-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

#modalText {
    white-space: pre-line;
    line-height: 1.6;
}
