/* My Rentals Page Styles */

/* Sidebar Menu Styles */
.rentals-sidebar {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.rentals-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    padding: 0 20px 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rentals-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rentals-menu-item {
    padding: 0;
    transition: all 0.3s ease;
}

.rentals-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.rentals-menu-link:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
}

.rentals-menu-link.active {
    background-color: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.rentals-menu-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.rentals-menu-text {
    flex-grow: 1;
}

.rentals-menu-badge {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .rentals-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

.my-rentals-section {
    padding: 50px 0;
}

/* Filter Options */
.filter-options {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 0.9rem;
    height: 50px;
}

/* Rental Cards */
.rental-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.rental-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rental-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.rental-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rental-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.rental-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rental-card:hover .rental-image img {
    transform: scale(1.05);
}

.rental-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rental-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.rental-id {
    color: #6c757d;
}

.rental-date {
    font-weight: 500;
    color: #333;
}

.rental-type {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rental-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.rental-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.rental-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.info-value.price {
    color: var(--primary-color);
}

.rental-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-rejected {
    flex: 1;
    background-color: #f8d7da;
    color: #dc3545;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-rejected:hover {
    background-color: #f5c2c7;
    color: #b02a37;
}

.btn-accepted {
    flex: 1;
    background-color: #d1e7dd;
    color: #198754;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-accepted:hover {
    background-color: #badbcc;
    color: #0f5132;
}

.btn-pending {
    flex: 1;
    background-color: #fff3cd;
    color: #ffc107;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pending:hover {
    background-color: #ffe69c;
    color: #997404;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.status-badge.accepted {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.status-badge.rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-browse {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-browse:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.3);
}

/* Pagination */
.pagination-container {
    margin-top: 40px;
}

.showing-results {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.pagination-number:hover {
    background-color: #e9ecef;
}

.pagination-number.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-arrow:hover {
    background-color: #e9ecef;
}

.pagination-arrow.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background-color: #f1f3f5;
}

.pagination-ellipsis {
    color: #6c757d;
    font-weight: bold;
    margin: 0 2px;
}

/* Due Date Styling for Ongoing Rentals */
.due-date {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.due-date:hover {
    background-color: #e9ecef;
}

.due-date i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.due-date-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 10px;
}

.due-date-value {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-left: auto;
}

/* Overdue Styling */
.due-date.overdue {
    background-color: #fff8f8;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.due-date.overdue i {
    color: #dc3545;
}

.due-date.overdue .due-date-value {
    color: #dc3545;
}

/* Penalty Info Styling */
.penalty-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 12px 15px;
    background-color: #fff8f8;
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
}

.penalty-info:hover {
    background-color: #ffe9e9;
}

.penalty-info i {
    color: #dc3545;
    font-size: 1.2rem;
    margin-right: 10px;
}

.penalty-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 10px;
}

.penalty-value {
    font-weight: 600;
    color: #dc3545;
    font-size: 1rem;
    margin-left: auto;
}

/* Return Info Styling */
.return-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f1f9f5;
    border-radius: 8px;
    border: 1px solid rgba(25, 135, 84, 0.1);
    transition: all 0.3s ease;
}

.return-info:hover {
    background-color: #e8f5ee;
}

.return-info i {
    color: #198754;
    font-size: 1.2rem;
    margin-right: 10px;
}

.return-info.delayed i {
    color: #ffc107;
}

.return-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 10px;
}

.return-value {
    font-weight: 600;
    color: #198754;
    font-size: 1rem;
    margin-left: auto;
}

.return-info.delayed {
    background-color: #fff8e6;
    border: 1px solid rgba(255, 193, 7, 0.1);
}

.return-info.delayed .return-value {
    color: #ffc107;
}

/* Completed Status Badge */
.status-badge.completed {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .rental-image {
        height: 220px;
    }

    .rental-title {
        font-size: 1.2rem;
    }

    .info-value {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .rental-info {
        flex-wrap: wrap;
        gap: 15px;
    }

    .info-item {
        flex: 1 1 calc(50% - 15px);
        min-width: 120px;
    }

    .rental-actions {
        flex-direction: column;
    }

    .pagination-container .row {
        flex-direction: column;
        gap: 15px;
    }

    .showing-results {
        text-align: center;
    }

    .custom-pagination {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .rental-meta {
        flex-direction: column;
        gap: 5px;
    }

    .rental-date {
        align-self: flex-start;
    }

    .rental-image {
        height: 180px;
    }

    .pagination-numbers {
        margin: 0 5px;
    }

    .pagination-number, .pagination-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* Hide the ellipsis and some page numbers on very small screens */
    @media (max-width: 375px) {
        .pagination-ellipsis, .pagination-number:nth-child(3) {
            display: none;
        }
    }
}
