/* CSS specific to Info Box Module */

.coderstation-info-box {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    min-height: 100px;
    position: relative;
    overflow: hidden; /* For ribbon clipping */
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coderstation-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Icon Block (Left Side) */
.coderstation-info-box .info-box-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    font-size: 2.2rem;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.coderstation-info-box:hover .info-box-icon i {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

/* Content Block (Right Side) */
.coderstation-info-box .info-box-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.coderstation-info-box .info-box-text {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.coderstation-info-box .info-box-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0;
}

.coderstation-info-box .info-box-progress {
    height: 5px;
    background: #e2e8f0;
    margin: 10px 0 5px 0;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.coderstation-info-box .info-box-progress .progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.coderstation-info-box .info-box-progress-desc {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Ribbon Implementation */
.ribbon-wrapper {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 10;
    width: 75px;
    height: 75px;
    overflow: hidden;
}

.ribbon {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    line-height: 20px;
    transform: rotate(45deg);
    width: 100px;
    display: block;
    box-shadow: 0 3px 10px -5px rgba(0,0,0,1);
    position: absolute;
    top: 15px;
    right: -21px;
    color: #fff;
}

/* Background Color Variants for Icon Blocks (Elegant Gradients) */
.bg-primary-box { background: linear-gradient(135deg, var(--primary-color) 0%, #153c66 100%) !important; }
.bg-secondary-box { background: linear-gradient(135deg, var(--secondary-color) 0%, #ff8a4c 100%) !important; }
.bg-accent-box { background: linear-gradient(135deg, var(--accent-color) 0%, #818cf8 100%) !important; }
.bg-success-box { background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important; }
.bg-danger-box { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important; }
.bg-warning-box { background: linear-gradient(135deg, var(--primary-color) 0%, #153c66 100%) !important; }
.bg-info-box { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%) !important; }
.bg-dark-box { background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%) !important; }

/* Progress bar inside content that matches theme */
.info-box-content.bg-primary-box { color: #fff; }
.info-box-content.bg-primary-box .info-box-text,
.info-box-content.bg-primary-box .info-box-progress-desc { color: rgba(255,255,255,0.8); }
.info-box-content.bg-primary-box .info-box-number { color: #fff; }
