/* css/styles.css */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #27ae60;
    --border-color: #e0e0e0;
    --section-bg: #f8f9fa;
    --text-color: #333;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --hover-bg: #f5f5f5;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --transition-speed: 0.3s;
}

/* Base Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #ecf0f1;
    color: var(--text-color);
}

.container {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* Headings */
h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    color: var(--primary-color);
}

/* Form Sections */
.form-section {
    background: var(--section-bg);
    margin: 25px 0;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-speed) ease;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.section-header i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

h2, h3 {
    color: var(--primary-color);
    margin: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

input[type="text"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Required Fields */
.required::after {
    content: "*";
    color: var(--error-color);
    margin-left: 4px;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}


#description {
    white-space: pre-wrap;
    min-height: 200px;
    padding: 12px;
    line-height: 1.8;
    background-image: linear-gradient(transparent 1.7rem, #e0e0e0 1.7rem);
    background-size: 100% 1.9rem;
    font-family: inherit;
}

.description-helper {
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.description-helper code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Amenities Styling */
.amenities-category {
    margin-bottom: 20px;
}

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.amenity-item {
    flex: 0 1 calc(25% - 12px);
    min-width: 180px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
}

.amenity-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.amenity-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    width: 100%;
}

.amenity-label input[type="checkbox"] {
    margin: 0;
}

.amenity-icon {
    width: 20px;
    color: var(--secondary-color);
    font-size: 1.1em;
    transition: transform var(--transition-speed) ease;
}

.amenity-label:hover .amenity-icon {
    transform: scale(1.1);
}

.amenity-label input:checked ~ .amenity-icon {
    color: var(--accent-color);
}
/* Add/Update these styles in your styles.css */

/* Additional Amenities Input Section */
.amenities-category .form-group .grid-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: stretch;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
}

.amenities-category .form-group input[type="text"] {
    border: none;
    border-radius: 0;
    padding: 12px 16px;
    margin: 0;
}

.amenities-category .form-group input[type="text"]:focus {
    box-shadow: none;
    border: none;
}

.btn-add-amenity {
    margin: 0;
    padding: 12px 24px;
    border-radius: 0;
    background-color: var(--accent-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    white-space: nowrap;
}

.btn-add-amenity i {
    font-size: 1.1em;
}

/* Override default form-group margin for this specific case */
.amenities-category > .form-group {
    margin-bottom: 12px;
}

/* Ensure the grid container doesn't have default form padding */
.amenities-category .form-group .grid-container input[type="text"] {
    width: 100%;
    background-color: transparent;
}
/* Messages and Alerts */
.error-message {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.warning-message {
    color: var(--warning-color);
    background: rgba(241, 196, 15, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid var(--warning-color);
}

.success-message {
    color: var(--success-color);
    font-size: 0.9em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Folder Confirmation */
.folder-confirm {
    background: #f1f9f1;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid var(--success-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons */
button {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color var(--transition-speed) ease;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: #219a52;
}

.confirm-folder-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    margin-top: 0;
}

/* Download Link */
.download-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color var(--transition-speed) ease;
}

.download-link:hover {
    background-color: #2980b9;
}

/* Add to your styles.css */

.validation-results {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.validation-results.error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.validation-results.success {
    background-color: #dcfce7;
    border: 1px solid #22c55e;
    color: #166534;
}

.validation-results h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.validation-results ul {
    margin-left: 30px;
    list-style-type: disc;
}

.validation-results li {
    margin: 5px 0;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Highlight fields with errors */
input.error,
select.error,
textarea.error {
    border-color: var(--error-color) !important;
    background-color: #fff5f5;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
