/**
 * Storage Limits Widget Styles
 */

.ri-storage-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ri-storage-widget h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.ri-storage-progress {
    margin-bottom: 20px;
}

.ri-storage-progress-bar {
    background: #f0f0f0;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ri-storage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.ri-storage-progress-fill.warning {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.ri-storage-progress-fill.danger {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
}

.ri-storage-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.ri-storage-used {
    font-weight: 600;
    color: #333333;
}

.ri-storage-separator {
    color: #999999;
}

.ri-storage-limit {
    color: #666666;
}

.ri-storage-percentage {
    color: #888888;
    font-weight: 500;
}

.ri-storage-breakdown {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

.ri-storage-breakdown h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
}

.ri-storage-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ri-storage-breakdown li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ri-storage-breakdown li:last-child {
    border-bottom: none;
}

.ri-storage-type {
    font-size: 14px;
    color: #666666;
    text-transform: capitalize;
}

.ri-storage-size {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
}

.ri-storage-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 15px;
}

.ri-storage-warning strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #856404;
}

.ri-storage-warning p {
    margin: 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
}

.ri-storage-warning-danger {
    background: #f8d7da;
    border-color: #f44336;
}

.ri-storage-warning-danger strong,
.ri-storage-warning-danger p {
    color: #721c24;
}

.ri-storage-warning-warning {
    background: #fff3cd;
    border-color: #ff9800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ri-storage-widget {
        padding: 15px;
    }
    
    .ri-storage-text {
        flex-direction: column;
        gap: 4px;
    }
    
    .ri-storage-breakdown li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ri-storage-widget {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .ri-storage-widget h3 {
        color: #e0e0e0;
    }
    
    .ri-storage-progress-bar {
        background: #404040;
    }
    
    .ri-storage-text {
        color: #b0b0b0;
    }
    
    .ri-storage-used {
        color: #e0e0e0;
    }
    
    .ri-storage-separator {
        color: #808080;
    }
    
    .ri-storage-limit {
        color: #b0b0b0;
    }
    
    .ri-storage-percentage {
        color: #909090;
    }
    
    .ri-storage-breakdown {
        border-top-color: #404040;
    }
    
    .ri-storage-breakdown h4 {
        color: #c0c0c0;
    }
    
    .ri-storage-breakdown li {
        border-bottom-color: #353535;
    }
    
    .ri-storage-type {
        color: #b0b0b0;
    }
    
    .ri-storage-size {
        color: #e0e0e0;
    }
}

/* Animation for progress bar */
@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.ri-storage-progress-fill.danger {
    animation: progressPulse 2s ease-in-out infinite;
}
