/* Admin Panel Styles */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar.active {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar .components {
    padding: 20px 0;
}

.sidebar .components li {
    padding: 0;
}

.sidebar .components li a {
    padding: 15px 20px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar .components li a:hover,
.sidebar .components li.active a {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    color: #fff;
}

.sidebar .components li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Content Styles */
#content {
    width: 100%;
    margin-left: 250px;
    transition: all 0.3s;
}

#content.active {
    margin-left: 0;
}

/* Navigation Bar */
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar .btn-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
}

/* Content Sections */
.content-section {
    display: none;
    padding: 20px;
}

.content-section.active {
    display: block;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Stats */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Status Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Modal Styles */
.modal-xl {
    max-width: 1140px;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Dynamic Form Elements */
.expect-item,
.amenity-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.included-item,
.excluded-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.remove-item {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Card Headers in Modal */
.card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.card-header i {
    margin-right: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    #content {
        margin-left: 0;
    }
    
    #content.active {
        margin-left: 250px;
    }
    
    .modal-xl {
        max-width: 95%;
        margin: 1.75rem auto;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Animation for Dynamic Elements */
.expect-item,
.amenity-item,
.included-item,
.excluded-item {
    animation: slideIn 0.3s ease-out;
}

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

/* Enhanced Modal Styling */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Card Styling in Modal */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

/* Form Group Spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Icon Styling */
.fas, .far, .fab {
    width: 16px;
    text-align: center;
}

/* Enhanced Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #36b9cc 0%, #1cc88a 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #1cc88a 0%, #36b9cc 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #f6c23e 100%);
    border: none;
}

/* Text Utilities */
.text-main {
    color: #667eea !important;
}

/* Flex Utilities */
.flex-two {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex-three {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Responsive Utilities */
@media (max-width: 576px) {
    .flex-two,
    .flex-three {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Admin Comments Styling */
.add-comment-form {
    margin-bottom: 15px;
}

.add-comment-form .input-group {
    width: 100%;
}

#commentInput {
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

#commentInput:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

#saveCommentBtn {
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: none;
}

.comment-item {
    background-color: #ffffff;
    border-radius: 0.25rem;
}

.comment-item:last-child {
    border-bottom: none !important;
}

#commentInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.add-comment-form .btn {
    padding: 8px 16px;
    white-space: nowrap;
}
