/* Home Page Styles */
.app-main {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Form Sections */
.form-section {
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Form Fields */
.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Form Validation */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: var(--secondary-color);
}

.form-field .error-message {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form Responsive */
@media (max-width: 768px) {
    .app-main {
        margin-left: 0;
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Form Animations */
.form-section {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Success State */
.form-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

/* Form Error State */
.form-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

/* Form Help Text */
.form-help {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Form Required Field */
.form-required::after {
    content: '*';
    color: var(--secondary-color);
    margin-left: 0.25rem;
}

/* Form Disabled State */
.form-field.disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* Form Readonly State */
.form-field.readonly input,
.form-field.readonly select,
.form-field.readonly textarea {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Form Autocomplete */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--background-color) inset;
    -webkit-text-fill-color: var(--text-color);
}

/* Form Container Styles */
.file-upload-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 1rem;
}

.coordinate-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.map-container {
    width: 100%;
    height: 270px;
    position: relative;
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group.hidden {
    display: none;
}

/* Form Control Styles */
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 1rem;
}

/* Status Containers */
.status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

/* Error Message */
.error-message {
    display: none;
    color: #c00;
    margin-top: 4px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .coordinate-container {
        flex-direction: column;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
} 