/* Styling for the Plus Button */
.main-common-title {
    display: flex;
    align-items: center;
}

.add-review-button {
    background: none;
    border: 2px solid #000;
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 26px;
    /* Adjust for centering */
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-review-button:hover {
    background-color: #000;
    color: #fff;
}

/* Modal Styling */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.7);
    /* Dark semi-transparent background */
}

.modal-content {
    background-color: #d6d6d6;
    /* Darker background similar to the review card */
    margin: 10% auto;
    /* Centered with a top margin */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    color: #000;
    position: relative;
}

.close-btn {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group-inline {
    display: flex;
    gap: 15px;
}

.form-group-inline .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    background-color: #ccc;
    color: #000;
    border-radius: 5px;
    box-sizing: border-box;
    /* Include padding in the element's total width and height */
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #ffd700;
    /* Gold/Star color for the button */
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background-color: #e5c100;
}

/* Rating Stars in Form */
.rating-stars {
    font-size: 24px;
    color: #ffd700;
    /* Star color */
    cursor: pointer;
}

.rating-stars .star-option {
    margin-right: 5px;
    transition: color 0.2s;
}

/* Ensures 'fas' (filled star) and 'far' (empty star) Font Awesome icons are available for the rating */
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.far {
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

/* ######################################################################## */

/* Styling for the Plus Button */
.dark-theme .main-common-title {
    display: flex;
    align-items: center;
}

.dark-theme .add-review-button {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 26px;
    /* Adjust for centering */
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dark-theme .add-review-button:hover {
    background-color: #fff;
    color: #000;
}

/* Modal Styling */
.dark-theme .modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    /* Dark semi-transparent background */
}

.dark-theme .modal-content {
    background-color: #242424;
    /* Darker background similar to the review card */
    margin: 10% auto;
    /* Centered with a top margin */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    color: #fff;
    position: relative;
}

.dark-theme .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.dark-theme .close-btn:hover,
.dark-theme .close-btn:focus {
    color: #fff;
    text-decoration: none;
}

/* Form Styling */
.dark-theme .form-group {
    margin-bottom: 15px;
}

.dark-theme .form-group-inline {
    display: flex;
    gap: 15px;
}

.dark-theme .form-group-inline .form-group {
    flex: 1;
}

.dark-theme label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.dark-theme input[type="text"],
.dark-theme input[type="url"],
.dark-theme textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
    /* Include padding in the element's total width and height */
}

.dark-theme textarea {
    resize: vertical;
    min-height: 100px;
}

.dark-theme .submit-btn {
    background-color: #ffd700;
    /* Gold/Star color for the button */
    color: #000;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    width: 100%;
}

.dark-theme .submit-btn:hover {
    background-color: #e5c100;
}

/* Rating Stars in Form */
.dark-theme .rating-stars {
    font-size: 24px;
    color: #ffd700;
    /* Star color */
    cursor: pointer;
}

.dark-theme .rating-stars .star-option {
    margin-right: 5px;
    transition: color 0.2s;
}

/* Ensures 'fas' (filled star) and 'far' (empty star) Font Awesome icons are available for the rating */
.dark-theme .fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.dark-theme .far {
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}