/* Dashboard Page Styles */

.dashboard-section {
    padding-bottom: 50px;
}

/* Stats Cards Styles */
.stats-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stats-card-body {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-info {
    flex: 1;
}

.stats-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.stats-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.stats-card-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.02);
}

.stats-link {
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.stats-link:hover {
    color: var(--primary-color);
}

.stats-link i {
    transition: transform 0.3s ease;
}

.stats-link:hover i {
    transform: translateX(5px);
}

/* Total Earnings Card */
.total-earnings .stats-amount {
    color: var(--primary-color);
}

.total-earnings .stats-icon {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
}

/* Unsettled Amount Card */
.unsettled-amount .stats-amount {
    color: #28a745;
}

.unsettled-amount .stats-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* Activity Cards Styles */
.activity-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-right: 15px;
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.activity-count {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.activity-arrow {
    color: #ccc;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Activity Icon Colors */
.rental-request {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.ongoing-rentals {
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

.due-crossed {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.completed-rentals {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

/* Activity Card Link Styles */
.activity-card-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.activity-card-link:hover,
.activity-card-link:focus {
    color: inherit;
    text-decoration: none;
}

/* Make sure the entire card is clickable */
.activity-card {
    padding: 0;
    overflow: hidden;
}

.activity-card-link {
    padding: 20px;
}

/* Ensure the hover effect still works */
.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Recent Orders Section */
.recent-orders-section {
    margin-top: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.recent-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.recent-orders-table th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.recent-orders-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

/* Remove the default hover style since we're handling it with JS */
.recent-orders-table tbody tr {
    position: relative;
    transition: all 0.3s ease;
}

.table-responsive {
    overflow-x: auto;
    /* Prevent horizontal scrollbar from appearing on hover */
    padding-bottom: 5px;
    margin-bottom: -5px;
}

.product-info {
    display: flex;
    align-items: center;
}

table .product-info .product-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-weight: 500;
    color: #333;
}

/* Badge Styles */
.badge {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

/* Button Styles */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 9, 31, 0.2);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .stats-amount {
        font-size: 2rem;
    }

    .activity-count {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-card-body {
        padding: 20px;
    }

    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .activity-card {
        padding: 15px;
    }

    .activity-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 10px;
    }

    .recent-orders-table th,
    .recent-orders-table td {
        padding: 10px;
    }

    /* .product-img {
        width: 30px;
        height: 30px;
    } */
}

/* Card Styles */
.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: none !important;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Table card specific styles */
.card .table-responsive {
    border-radius: 15px;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .card .table-responsive {
        border-radius: 15px;
        overflow: scroll;
    }
}

/* Custom table hover styles */
.recent-orders-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.01);
}

#featured .product-img, #products .product-img {
    width: 100%;
    height: 200px;
}

