/* =========================================================
   VISITOR STATISTICS BUTTON
========================================================= */

.visitor-stats-trigger {
    margin-top: 12px;
}

.visitor-stats-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 10px 15px;

    background: rgba(198, 154, 53, 0.12);
    border: 1px solid #C69A35;
    border-radius: 5px;

    color: #E2B94F;
    font-size: 13px;
    font-weight: 600;

    transition: all 0.3s ease;
    cursor: pointer;
}

.visitor-stats-btn:hover {
    background: #C69A35;
    color: #2B2225;
    transform: translateY(-2px);
}

.visitor-stats-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* =========================================================
   VISITOR STATISTICS MODAL
========================================================= */

.visitor-stats-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.visitor-stats-header {
    background: #2B2225;
    color: #ffffff;
    padding: 22px 25px;
    border-bottom: 3px solid #C69A35;
}

.visitor-stats-header h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.visitor-stats-header small {
    color: #E2B94F;
    font-size: 12px;
}

.visitor-stats-header i {
    color: #E2B94F;
}

.visitor-stats-modal .modal-body {
    background: #f7f8fa;
}


/* =========================================================
   STATISTICS CARDS
========================================================= */

.visitor-stat-card {
    height: 100%;
    padding: 18px 15px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visitor-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.visitor-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #C69A35;
}

.visitor-stat-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(198, 154, 53, 0.12);
    color: #9b7420;
    margin-bottom: 12px;
    font-size: 16px;
}

.visitor-stat-label {
    display: block;
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.visitor-stat-card h3 {
    font-size: 27px;
    font-weight: 800;
    color: #2B2225;
    margin: 0;
    word-break: break-word;
}


/* =========================================================
   SEVEN-DAY VISITOR CHART
========================================================= */

.visitor-chart-container {
    background: #ffffff;
    padding: 22px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.visitor-chart-title {
    color: #2B2225;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 15px;
}

.visitor-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;

    height: 220px;
    padding: 15px 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.visitor-chart-day {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    height: 100%;
}

.visitor-chart-bar-wrapper {
    width: 100%;
    max-width: 45px;

    flex: 1;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.visitor-chart-bar {
    width: 100%;
    min-height: 4px;

    background: linear-gradient(
        to top,
        #9b7420,
        #C69A35
    );

    border-radius: 5px 5px 0 0;

    transition: height 0.6s ease;
}

.visitor-chart-value {
    color: #2B2225;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.visitor-chart-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    padding: 10px 0;
    text-align: center;
    white-space: nowrap;
}


/* =========================================================
   VISITOR INFORMATION
========================================================= */

.visitor-stats-note {
    padding: 12px 15px;
    background: rgba(198, 154, 53, 0.08);
    border-left: 3px solid #C69A35;
    border-radius: 5px;

    font-size: 12px;
    color: #6c757d;
    line-height: 1.7;
}

.visitor-stats-note i {
    color: #9b7420;
}

.visitor-stats-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
}

.visitor-stats-footer span {
    margin-right: auto;
    font-size: 11px;
    color: #6c757d;
}

/* Visitor Statistics Close Button */
.visitor-stats-close-btn {
    background: #2B2225;
    color: #ffffff;
    border: 1px solid #2B2225;
    padding: 9px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.visitor-stats-close-btn:hover {
    background: #C69A35;
    color: #2B2225;
    border-color: #C69A35;
}

.visitor-stats-close-btn:focus-visible {
    outline: 2px solid #C69A35;
    outline-offset: 3px;
}


/* =========================================================
   MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 575.98px) {

    .visitor-stats-modal .modal-dialog {
        margin: 10px;
    }

    .visitor-stats-header {
        padding: 18px;
    }

    .visitor-stat-card {
        padding: 14px 12px;
    }

    .visitor-stat-card h3 {
        font-size: 23px;
    }

    .visitor-chart-container {
        padding: 15px 10px;
    }

    .visitor-chart {
        gap: 5px;
        height: 190px;
    }

    .visitor-chart-bar-wrapper {
        max-width: 28px;
    }

    .visitor-chart-label {
        font-size: 10px;
    }

    .visitor-stats-footer {
        padding: 12px;
    }

}