@charset "UTF-8";
/* CSS Document */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    padding: 20px;
}

.container {
    max-width: 1440px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 30px 0;
}

.form-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fdfdfd;
}

.form-section p.section-description {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    gap: 20px; /* Space between form groups */
}

.form-group {
    margin-bottom: 0; /* Reset default margin as grid handles spacing */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
    font-size: 1em;
}

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

select[multiple] {
    min-height: 100px;
}

.required {
    color: red;
}

.help-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

.form-actions {
    text-align: right;
    margin-top: 30px;
}

.form-actions button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.form-actions button[type="button"] {
    background-color: #6c757d;
}

.form-actions button:hover {
    opacity: 0.9;
}

/* KPI Group specific styling */
.kpi-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    align-items: center;
}

.kpi-group input {
    flex: 1 1 auto; /* Allow inputs to grow and shrink */
    min-width: 100px; /* Minimum width for inputs before wrapping */
}

.kpi-group button.remove-kpi {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    flex-shrink: 0;
    margin-left: auto; /* Push button to the right */
}

#addKpi {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

#addKpi:hover {
    background-color: #218838;
}

/* Responsive Grid Layout */

/* Mobile (1 column) - Default */
.form-grid {
    grid-template-columns: 1fr;
}

.form-group.full-width {
    grid-column: 1 / -1; /* Always span full width on mobile */
}

/* Tablet (2 columns) */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group.full-width {
        grid-column: 1 / -1; /* Span two columns */
    }
}

/* Desktop (3 columns) */
@media (min-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-group.full-width {
        grid-column: 1 / -1; /* Span three columns */
    }
}

/* Large Desktop (4 columns) */
@media (min-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .form-group.full-width {
        grid-column: 1 / -1; /* Span four columns */
    }
}