/**
 * MSC Frontend Checks Styles
 * Styling für die Check-Limitierung
 */

/* Check Counter */
.msc-check-counter {
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.msc-check-counter .counter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.msc-check-counter .counter-text {
    font-size: 14px;
    color: #50575e;
}

.msc-check-counter .counter-text strong {
    font-weight: 600;
    color: #2271b1;
}

.msc-check-counter .counter-progress {
    flex: 1;
    height: 8px;
    background: #dcdcde;
    border-radius: 4px;
    overflow: hidden;
}

.msc-check-counter .counter-progress-bar {
    height: 100%;
    background: #2271b1;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Status-Farben */
.msc-check-counter.near-limit .counter-progress-bar {
    background: #dba617;
}

.msc-check-counter.limit-reached .counter-progress-bar {
    background: #d63638;
}

.msc-check-counter.limit-reached .counter-text strong {
    color: #d63638;
}

/* Check Controls */
.msc-check-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.msc-check-controls .msc-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.msc-check-controls .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Disabled Checks */
.msc-check-item.msc-check-disabled {
    opacity: 0.6;
}

.msc-check-item.msc-check-disabled label {
    cursor: not-allowed;
}

/* Limit Warning */
.msc-limit-warning {
    margin-top: 20px;
    margin-bottom: 0;
}

/* Category Counter */
.msc-category-counter {
    font-size: 12px;
    color: #787c82;
    margin-left: 5px;
}

/* Notifications */
.msc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    padding: 12px 20px;
    background: #fff;
    border-left: 4px solid #2271b1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 100000;
}

.msc-notification.show {
    transform: translateX(0);
}

.msc-notification .dashicons {
    flex-shrink: 0;
}

.msc-notification-success {
    border-color: #00a32a;
}

.msc-notification-success .dashicons {
    color: #00a32a;
}

.msc-notification-error {
    border-color: #d63638;
}

.msc-notification-error .dashicons {
    color: #d63638;
}

.msc-notification-warning {
    border-color: #dba617;
}

.msc-notification-warning .dashicons {
    color: #dba617;
}

.msc-notification-info {
    border-color: #2271b1;
}

.msc-notification-info .dashicons {
    color: #2271b1;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .msc-check-counter .counter-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .msc-check-counter .counter-progress {
        width: 100%;
        margin-top: 10px;
    }
    
    .msc-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}