/* My Orders CSS */

/* Orders Sidebar */
.orders-sidebar {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.orders-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.orders-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orders-menu-item {
    margin-bottom: 10px;
}

.orders-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.orders-menu-link:hover, 
.orders-menu-link.active {
    background: linear-gradient(135deg, rgba(140, 9, 31, 0.05), rgba(140, 9, 31, 0.1));
    color: var(--primary-color);
    transform: translateX(5px);
}

.orders-menu-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(140, 9, 31, 0.1);
    border-radius: 8px;
    margin-right: 12px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.orders-menu-link:hover .orders-menu-icon,
.orders-menu-link.active .orders-menu-icon {
    background: var(--primary-color);
    color: white;
}

.orders-menu-text {
    font-weight: 500;
    flex-grow: 1;
}

.orders-menu-badge {
    background: rgba(140, 9, 31, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.orders-menu-link:hover .orders-menu-badge,
.orders-menu-link.active .orders-menu-badge {
    background: var(--primary-color);
    color: white;
}

/* Order Cards */
.order-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.order-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.order-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-details {
    flex-grow: 1;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #777;
}

.order-id {
    font-weight: 500;
}

.order-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 5px 0;
    color: #333;
}

.order-items {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.order-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 5px;
}

.order-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.order-status.ongoing {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.order-status.completed {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.order-status.cancelled {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.order-status.pending {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ed9728;
}

/* Order View Page */
.order-view-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 20px;
}

.order-product-list {
    margin-bottom: 20px;
}

.order-product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.order-product-item:last-child {
    border-bottom: none;
}

.order-product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-details {
    flex-grow: 1;
}

.order-product-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.order-product-meta {
    font-size: 0.85rem;
    color: #777;
}

.order-product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Order Status Timeline */
.order-status-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    z-index: 2;
    margin-right: 15px;
}

.timeline-icon.completed {
    background-color: #28a745;
}

.timeline-icon.pending {
    background-color: #6c757d;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.timeline-date {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    justify-content: space-between;
}

.timeline-line {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: -30px;
    width: 2px;
    background-color: #ddd;
    z-index: 1;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

/* Destination Section */
.destination-section {
    margin-top: 30px;
}

.destination-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.destination-info {
    margin-bottom: 20px;
}

.destination-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.destination-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(140, 9, 31, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 15px;
}

.destination-info-text {
    font-weight: 500;
    color: #555;
}

/* Bill Details Section */
.bill-details-section {
    margin-top: 30px;
}

.bill-details-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.bill-item:last-child {
    border-bottom: none;
}

.bill-item-label {
    color: #666;
}

.bill-item-value {
    font-weight: 600;
    color: #333;
}

.bill-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.bill-total-label {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.bill-total-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Action Buttons */
.order-action-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-cancel-order {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-cancel-order:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-review-order {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-review-order:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
}

/* Review Form */
.review-form .form-label {
    font-weight: 500;
    color: #555;
}

.review-form .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.review-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(140, 9, 31, 0.1);
    border-color: var(--primary-color);
}

.rating-stars {
    display: flex;
    margin-bottom: 15px;
}

.rating-star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.rating-star.active {
    color: #ffc107;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .orders-sidebar {
        margin-bottom: 30px;
        position: static;
    }
}

@media (max-width: 767px) {
    .order-card-link {
        flex-direction: column;
    }
    
    .order-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 200px;
    }
    
    .order-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-date {
        margin-top: 5px;
    }
}
