* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

h2 {
    color: #34495e;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

h3 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
}

.form-section {
    animation: fadeIn 0.5s ease-in;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-prev {
    background-color: #95a5a6;
    color: white;
}

.btn-prev:hover {
    background-color: #7f8c8d;
}

.btn-next, .btn-submit {
    background-color: #3498db;
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    background-color: #2980b9;
}

.progress-bar {
    display: flex;
    margin-bottom: 30px;
    justify-content: center;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    color: #7f8c8d;
}

.progress-step.active {
    background-color: #3498db;
    color: white;
}

.progress-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #ecf0f1;
    margin: 0 5px;
    align-self: center;
}

.note {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 5px;
}

.dynamic-add-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 0;
}

.dynamic-add-btn:hover {
    background-color: #219653;
}

.dynamic-remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.dynamic-remove-btn:hover {
    background-color: #c0392b;
}

.students-table-container {
    overflow-x: auto;
}

.class-letter-input {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

.auto-calculate-note {
    font-size: 12px;
    color: #27ae60;
    margin-top: 5px;
    font-style: italic;
}

.mobile-optimized-input {
    font-size: 16px;
    min-height: 44px;
    padding: 12px;
}

.profile-classes-section {
    margin-top: 30px;
}

.profile-classes-table th,
.profile-classes-table td {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.profile-classes-table input[type="text"],
.profile-classes-table input[type="number"] {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    text-align: center;
}

.profile-classes-table .class-letter-input {
    width: 100%;
    min-width: 80px;
    font-weight: bold;
}

.teachers-info-text {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
}

.budget-table-container {
    overflow-x: auto;
    margin: 15px 0;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.budget-table th,
.budget-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.budget-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    white-space: nowrap;
}

.budget-item-name {
    min-width: 400px;
    max-width: 500px;
}

.budget-item-limit {
    min-width: 200px;
    max-width: 250px;
    white-space: normal;
}

.budget-item-amount {
    min-width: 120px;
    text-align: center;
}

.budget-table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

.teachers-table-container {
    overflow-x: auto;
}

.teachers-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.teachers-table th,
.teachers-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.teachers-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.disabled-input {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}
