body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1e1e24;
    color: #f5f5f5;
    margin: 0;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.main-container {
    background-color: #2a2a32;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 900px; /* Расширяем контейнер под две колонки */
}

h1 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #4fc3f7;
    text-align: center;
}

h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #4f4f5e;
}

.js-card h2 { color: #ffd600; }
.css-card h2 { color: #00e5ff; }

.global-controls {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #212127;
    padding: 15px;
    border-radius: 6px;
}

.grid-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.module-card {
    background-color: #212127;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #3a3a44;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 13px;
    color: #b0bec5;
}

input[type="text"] {
    background-color: #3a3a44;
    border: 1px solid #4f4f5e;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

input[type="text"]:focus {
    border-color: #4fc3f7;
}

button {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

button:disabled {
    background-color: #4f4f5e !important;
    color: #888 !important;
    cursor: not-allowed;
}

.btn-primary { background-color: #2979ff; color: white; padding: 12px 24px; font-size: 15px; }
.btn-primary:hover { background-color: #2962ff; }

.btn-success { background-color: #00e676; color: #1e1e24; width: 100%; font-size: 15px; margin-top: auto; }
.btn-success:hover { background-color: #00c853; }

.btn-download {
    display: block;
    text-align: center;
    background-color: #ff9100;
    color: #1e1e24;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    margin-top: 15px;
    box-shadow: 0 0 10px rgba(255, 145, 0, 0.2);
}
.btn-download:hover { background-color: #ff6d00; }

.status-text {
    font-size: 13px;
    color: #00e676;
    word-break: break-all;
}

.hidden { display: none !important; }
