/* ========================================
   USER PROFILE & BOOKING PAGES BUNDLE
   Optimized CSS for user sections
   ======================================== */

/* PROFILE PAGES */
.profile-sidebar .card,
.user-sidebar .card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.user-sidebar .sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #2d3a4b;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #49a01b;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.profile-sidebar .list-group-item,
.user-sidebar .user-menu li a {
    border: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
    display: block;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.user-sidebar .user-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.profile-sidebar .list-group-item.active,
.user-sidebar .user-menu li.active a {
    background: #2d3a4b;
    color: white;
}

.profile-sidebar .list-group-item:hover:not(.active),
.user-sidebar .user-menu li a:hover {
    background: #f8f9fa;
    padding-left: 25px;
    color: #2d3a4b;
}

.user-sidebar .user-menu li.active a:hover {
    background: #49a01b;
    color: #2d3a4b;
}

.profile-content .card,
.user-content-area .card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.profile-content .card-header,
.user-content-area .card-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.profile-content .card-header h5,
.user-content-area .card-header h5 {
    margin: 0;
    color: #2d3a4b;
    font-weight: 600;
    font-size: 18px;
}

.user-content-area .card-body {
    padding: 25px;
}

/* ADDRESS CARDS */
.address-card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.address-card.border-success {
    border-width: 2px !important;
}

.address-card .card-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* BADGES */
.badge {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
}

.badge-success {
    background: #49a01b;
}

.badge-info {
    background: #17a2b8;
}

/* FORMS */
.profile-content .form-group label,
.user-content-area .form-group label {
    font-weight: 600;
    color: #2d3a4b;
    margin-bottom: 8px;
    font-size: 14px;
}

.profile-content .form-control,
.user-content-area .form-control {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
}

.profile-content .form-control:focus,
.user-content-area .form-control:focus {
    border-color: #49a01b;
    box-shadow: 0 0 0 0.2rem rgba(73, 160, 27, 0.25);
}

/* BUTTONS */
.user-content-area .btn,
.user-content-area .btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-content-area .btn i {
    font-size: 12px;
    margin-right: 5px;
}

.user-content-area .btn-primary {
    background: #2d3a4b;
    border-color: #2d3a4b;
}

.user-content-area .btn-primary:hover {
    background: #49a01b;
    border-color: #49a01b;
    color: #2d3a4b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 160, 27, 0.3);
}

/* CHECKOUT PAGE */
.checkout-page .card {
    border-radius: 8px;
    margin-bottom: 20px;
}

.checkout-page .card-header {
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
}

.checkout-page .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.checkout-page .card-header.bg-primary {
    background: #49a01b !important;
}

.saved-addresses .custom-control {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.saved-addresses .custom-control:hover {
    border-color: #49a01b;
    background: #f8f9fa;
}

.saved-addresses .custom-control-input:checked ~ .custom-control-label {
    color: #49a01b;
    font-weight: 600;
}

/* BOOKING PAGE */
.booking-page .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.booking-page .card-body {
    padding: 25px;
}

.booking-page .card-header {
    background: #2d3a4b !important;
    border: none;
    padding: 15px 20px;
}

.booking-page .card-header h5 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

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

.booking-page .form-group label {
    font-weight: 600;
    color: #2d3a4b;
    margin-bottom: 8px;
    font-size: 14px;
}

.booking-page .form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
    height: auto;
    line-height: 1.5;
}

.booking-page .form-control:focus {
    border-color: #49a01b;
    box-shadow: 0 0 0 0.2rem rgba(73, 160, 27, 0.25);
}

.booking-page select.form-control {
    padding: 10px 15px;
    height: 45px;
}

.booking-page textarea.form-control {
    min-height: 80px;
}

.booking-page .btn-primary {
    background: #2d3a4b !important;
    border: 2px solid #2d3a4b !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.booking-page .btn-primary:hover {
    background: #49a01b !important;
    border-color: #49a01b !important;
    color: #2d3a4b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 160, 27, 0.3);
}

.booking-page .btn-primary:disabled {
    background: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    transform: none;
}

.booking-page .text-success {
    color: #2c5f2d !important;
    font-size: 20px;
}

.booking-page .badge-info {
    background: #49a01b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

/* CART BADGE */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* DROPDOWN MENU */
.navbar .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 10px 0;
}

.navbar .dropdown-menu li a {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar .dropdown-menu li a:hover {
    background: #49a01b;
    color: white !important;
}

.navbar .dropdown-menu .divider {
    margin: 5px 0;
    border-top: 1px solid #e9ecef;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .user-sidebar {
        margin-bottom: 30px;
    }
    
    .booking-page .sticky-top {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .profile-sidebar {
        margin-bottom: 30px;
    }
    
    .user-sidebar .user-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .user-sidebar .user-menu li {
        flex: 1 1 calc(50% - 8px);
        margin-bottom: 0;
    }
    
    .user-sidebar .user-menu li a {
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .user-sidebar .user-menu li a i {
        display: block;
        margin: 0 auto 5px;
        font-size: 18px;
    }
    
    .user-content-area .btn,
    .user-content-area .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .user-sidebar .user-menu li {
        flex: 1 1 100%;
    }
    
    .user-sidebar .user-menu li a {
        text-align: left;
    }
    
    .user-sidebar .user-menu li a i {
        display: inline-block;
        margin-right: 10px;
    }
}
