/* Custom Inner Pages Styling Ported from CI4 Views */

/* Sidebar & Generic Sidebar Widget */
.generic-sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}
.generic-sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5722;
    color: #0f172a;
}
.generic-sidebar-link {
    display: block;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
    background: #f8fafc;
    transition: all 0.2s ease;
    text-decoration: none;
}
.generic-sidebar-link:hover, .generic-sidebar-link.active {
    background: #ff5722;
    color: #ffffff;
    padding-left: 18px;
}

/* Promoter & Leader Cards */
.promoter-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promoter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Timeline Components */
.dribbble-timeline-wrapper {
    position: relative;
    padding: 30px 0;
    margin: 20px 0;
}
.dribbble-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #e2e8f0;
    transform: translateX(-50%);
    z-index: 1;
}
.dribbble-timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}
.dribbble-timeline-item.left-item {
    justify-content: flex-end;
    padding-right: calc(50% + 28px);
}
.dribbble-timeline-item.right-item {
    justify-content: flex-start;
    padding-left: calc(50% + 28px);
}
.dribbble-timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #ff5722;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}
.dribbble-timeline-item:hover .dribbble-timeline-dot {
    background-color: #e64a19;
    transform: translate(-50%, -50%) scale(1.25);
    box-shadow: 0 0 0 6px rgba(255, 87, 34, 0.35);
}
.dribbble-timeline-card {
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dribbble-timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.09);
}

.left-item .dribbble-timeline-card::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #f8fafc;
}
.right-item .dribbble-timeline-card::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f8fafc;
}

.card-main-content {
    flex: 1;
    padding: 20px 22px;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.35;
}
.card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
}
.thumb-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
}
.card-date-box {
    width: 95px;
    background: #f8fafc;
    border-left: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    text-align: center;
    flex-shrink: 0;
}
.right-item .card-date-box {
    border-left: none;
    border-right: 1px solid #edf2f7;
}
.date-month {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.date-year {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 4px 0;
}
.date-sub-year {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

@media (max-width: 991px) {
    .dribbble-timeline-line {
        left: 20px;
    }
    .dribbble-timeline-item.left-item,
    .dribbble-timeline-item.right-item {
        padding-left: 45px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .dribbble-timeline-dot {
        left: 20px;
    }
    .left-item .dribbble-timeline-card::after {
        display: none;
    }
    .left-item .dribbble-timeline-card {
        flex-direction: row-reverse;
    }
    .left-item .card-date-box {
        border-left: none;
        border-right: 1px solid #edf2f7;
    }
    .right-item .dribbble-timeline-card::before,
    .left-item .dribbble-timeline-card::before {
        content: "";
        position: absolute;
        left: -10px;
        top: 50%;
        transform: translateY(-50%);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-right: 10px solid #f8fafc;
        border-left: none;
    }
}

/* Product Range Cards */
.product-range-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-range-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}

/* Dealer Map */
#map {
    height: 520px;
    width: 100%;
    border-radius: 12px;
    z-index: 1;
}
.dealer-sidebar-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}
.dealer-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}
.dealer-card-item:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
