/*
Theme Name: hello-elementor Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

.dashboard-container {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}
/* Two-column form layout */
.dashboard-content form[method="post"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Make all h3 headings span both columns */
.dashboard-content form[method="post"] > h3 {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Style for all direct children paragraphs of the form */
.dashboard-content form[method="post"] > p {
    margin: 10px 0;
}

/* Special handling for the amenities/rules/notes groups */
#amenities-group,
#rules-group,
#notes-group {
    grid-column: 1 / -1;
}

/* Style for add buttons to span full width */
#add-amenity,
#add-rule,
#add-note {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

/* Image preview container */
#image-preview-container {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Style for amenity/rule/note rows */
.amenity-row,
.rule-row,
.note-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    grid-column: 1 / -1;
}

/* Make inputs in rows take available space */
.amenity-row input,
.rule-row input,
.note-row input {
    flex-grow: 1;
}

/* Submit button styling */
.dashboard-content form[method="post"] > button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 20px;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .dashboard-content form[method="post"] {
        grid-template-columns: 1fr;
    }
}
.dashboard-sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-right: 20px;
}

.dashboard-content {
    flex: 1;
    background: #49597e99;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.user-info img {
    border-radius: 50%;
    margin-bottom: 10px;
}

.dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 10px;
}

.dashboard-menu a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.dashboard-menu a:hover {
    background: #e9ecef;
}

.dashboard-menu li.active a {
    background: #0073aa;
    color: white;
}


.profile-display-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-avatar {
    position: relative;
    margin-right: 30px;
}

.profile-avatar img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.profile-avatar .edit-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.profile-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    width: 150px;
    color: #555;
}

.detail-value {
    flex: 1;
}

.edit-button {
    background: #fff !important;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    color: black !important;
    border: 1px solid #01cbec !important;
    border-left: 3px solid #01cbec !important;
}
button.save-button{
background: #fff !important;
    color: #01cbec;
    border: 1px solid #01cbec !important;
    border-left: 3px solid #01cbec !important;
}
.edit-button:hover, button.save-button:hover {
    background: #01cbec !important;
    color: white !important;
}

/* Modal Styles */
.profile-edit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.save-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.save-button:hover {
    background: #005177;
}

.user-dashboard-sidebar .dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dashboard-sidebar .dashboard-menu li {
    margin-bottom: 8px;
}

.user-dashboard-sidebar .dashboard-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.user-dashboard-sidebar .dashboard-menu li a:hover {
    background: #ebf4ff;
    color: #3182ce;
    transform: translateX(5px);
}

.user-dashboard-sidebar .dashboard-menu li.active a {
    background: #3182ce;
    color: white;
    font-weight: 600;
}

.user-dashboard-sidebar .dashboard-menu li a:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #cbd5e0;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.user-dashboard-sidebar .dashboard-menu li a:hover:before,
.user-dashboard-sidebar .dashboard-menu li.active a:before {
    background: currentColor;
    transform: scale(1.3);
}

/* Responsive styles */
@media (max-width: 992px) {
    .user-dashboard-sidebar {
        width: 240px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .user-dashboard-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .user-dashboard-sidebar .dashboard-menu li a {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .user-dashboard-sidebar {
        padding: 15px;
    }
    
    .user-dashboard-sidebar .user-info img,
    .user-dashboard-sidebar .user-info .avatar {
        width: 70px;
        height: 70px;
    }
    
    .user-dashboard-sidebar .user-info h3 {
        font-size: 16px;
    }
}
.modal-content form#profileEditForm {
    display: block;
}

.modal-content form#profileEditForm button.save-button {
    width: 100%;
    margin-top: 0;
    color: #01cbec;
}