
/* African Shanty Town Background with Vibrant Colors */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: linear-gradient(to right, rgba(220, 115, 55, 0.8), rgba(255, 255, 255, 0.8)), url('../images/login.jpg') ;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

/* Form Container with African-inspired colors */
.form_container {
    max-width: 1000px;
    margin: 30px auto;
    background: rgba(253, 253, 253, 0.92);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #8B4513; /* Earthy brown border */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Headings with African color palette */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.4em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

h1:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: #E25822; /* African sunset orange */
    margin: 10px auto;
}

h2 {
    color: #1e88e5;
    border-bottom: 2px solid #8B4513; /* Earthy brown */
    padding-bottom: 8px;
    margin-top: 0;
    font-size: 1.5em;
}

h3 {
    color: #1e88e5;
    margin: 25px 0 15px;
    font-size: 1.2em;
}

/* Form Sections with African-inspired styling */
.section {
    margin-bottom: 35px;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #E25822; /* African sunset orange accent */
}

/* Photo Upload with African styling */
.photo_upload {
    text-align: center;
    margin: 20px 0 30px;
}

.photo_frame {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #8B4513; /* Earthy brown */
    margin: 0 auto 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.photo_frame img {
    max-width: 100%;
    max-height: 100%;
    display: none;
    object-fit: cover;
}

.photo_frame span {
    color: #777;
    font-style: italic;
    padding: 0 10px;
}

.upload_label {
    cursor: pointer;
    color: #E25822; /* African sunset orange */
    font-weight: bold;
    padding: 10px 20px;
    border: 2px dashed #8B4513; /* Earthy brown */
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s;
    background: rgba(139, 69, 19, 0.1);
}

.upload_label:hover {
    background: rgba(226, 88, 34, 0.1);
    transform: translateY(-2px);
}

/* Grid Layouts */
.grid_2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid_3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Form Elements with African color accents */
.form_group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.required:after {
    content: " *";
    color: #E25822; /* African sunset orange */
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 1mm;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
    background: #f9f9f9;
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: #8B4513; /* Earthy brown */
    outline: none;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
    background: #fff;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* Health Conditions with African styling */
.condition_item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #E25822; /* African sunset orange */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Strength Assessment with African colors */
.strength_categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.strength_category {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.strength_rating {
    margin: 10px 0;
}

.rating_scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
}

.rating_scale input[type="radio"] {
    display: none;
}

.rating_scale label {
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 3px;
    margin: 2px;
    font-size: 0.9em;
    transition: all 0.2s;
    background: #e9e9e9;
}

.rating_scale input[type="radio"]:checked + label {
    background: #8B4513; /* Earthy brown */
    color: white;
}

/* Buttons with African color scheme */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn_btn_primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn_btn_primary:hover {
    background: #1c3dc0;
    transform: translateY(-2px);
}

.btn_btn_secondary {
    background: #E25822;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: bold;
}

.btn_btn_secondary:hover {
    background: #1c3dc0;
    transform: translateY(-2px);
}

.btn_add {
    background: #E25822; /* African sunset orange */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
}

.btn_add:hover {
    background: #C04B1C;
}

.form_actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Declaration Box with African styling */
.declaration_box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #8B4513; /* Earthy brown */
}

.declaration_box ol {
    padding-left: 20px;
}

.declaration_box li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.declaration_box li:before {
    content: "•";
    color: #E25822; /* African sunset orange */
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -3px;
}

/* Floating Scroll-to-Top Button with African colors */
.floating_scroll_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(to bottom, #8B4513, #E25822); /* Brown to orange */
    backdrop-filter: blur(4px);
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.floating_scroll_btn.visible {
    opacity: 1;
    transform: translateY(0);
    display: flex;
}

.floating_scroll_btn:hover {
    background: linear-gradient(to bottom, #bce222, #23138b);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

.floating_scroll_btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Error Handling */
.error_container {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    background: #FFE5E5;
    border-left: 4px solid #E25822;
    color: #721c24;
}

.error_highlight {
    border-color: #E25822 !important;
    background-color: #fff3f3;
}

.error_message {
    color: #E25822;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid_2, 
    .grid_3, 
    .strength_categories {
        grid-template-columns: 1fr;
    }
    
    .form_container {
        padding: 15px;
    }
    
    .form_actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .photo_frame {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
}

/* Health Conditions with African styling */
.condition_item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #E25822; /* African sunset orange */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn_remove {
    background: #e53935;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_remove:hover {
    background: #c62828;
}


/* Grade System Styles */
.grade_info, .grade_system {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #1e88e5;
}

.grade_info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

/* Subjects Table */
.subjects_table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.subjects_table th, .subjects_table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.subjects_table th {
    background-color: #1e88e5;
    color: white;
}

.subjects_table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.subjects_table input[type="number"] {
    width: 80px;
    padding: 8px;
}

.grade_key {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 6px;
}

.grade_key h4 {
    margin-top: 0;
    color: #1e88e5;
}

.grade_key ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.grade_key li {
    margin-bottom: 5px;
    list-style-type: none;
    position: relative;
    padding-left: 20px;
}

.grade_key li:before {
    content: "•";
    color: #1e88e5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Add/Remove Subject Buttons */
.btn_add_subject {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    margin: 10px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn_add_subject:hover {
    background: #45a049;
}

.btn_remove_subject {
    background: #f44336;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_remove_subject:hover {
    background: #d32f2f;
}

/* Adjust table for remove button */
.subjects_table td:last-child {
    width: 40px;
    text-align: center;
}

/*form input  validation*/
.input-error-field {
    border-color: #dc3545 !important;
    background-color: #fff3f3;
}
.input-error-message{
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/*===========================
PHONE NUMBER VALIDATION
=============================*/
.network-logo-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.network-logo-container .network-logo {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    z-index: 2;
}

.network-logo-container input {
    padding-left: 40px !important;
}

.success-field {
    border: 1px solid lightblue !important;
    background-color: #f8fff9;
}

.error-field {
    border: 1px solid #dc3545 !important;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.875em;
    display: block;
    margin-top: 0.25rem;
}
/*image validation on uplod */
.error-frame {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.image-error {
    color: #dc3545;
    font-size: 0.875em;
    display: block;
    margin-top: 10px;
    text-align: center;
}
/*THE section 5 mini style */
/* Form group styling - ensures proper vertical layout */
.form_group {
    display: block;
    margin-bottom: 25px;
    width: 100%;
}

.form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* Regular dropdown styling */
.regular-select {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-top: 0;
}

.regular-select:focus {
    border-color: #4a90e2;
    outline: none;
}

/* Section styling */
.section {
    margin-bottom: 30px;
}

.section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(3px)) {
    .form_container {
        background: rgba(253, 253, 253, 0.98);
    }
}

@supports not (-webkit-backdrop-filter: blur(3px)) {
    .form_container {
        background: rgba(253, 253, 253, 0.98);
    }
}

