/*
 * Rominext Reusable Box Components
 * Beautiful, consistent box styling for the entire platform
 * Based on the attractive design from the content creation page
 */

/* Base Rominext Box - Main container style */
.rominext-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e3e6f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.rominext-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

/* Primary Rominext Box - Green theme matching system colors */
.rominext-box-primary {
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
    border: 2px solid #d4edda;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(40, 167, 69, 0.15);
    transition: all 0.3s ease;
}

.rominext-box-primary:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8fff9 100%);
    border-color: #28a745;
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 2rem 0 rgba(40, 167, 69, 0.2);
}

/* Secondary Rominext Box - Gray theme */
.rominext-box-secondary {
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(108, 117, 125, 0.15);
    transition: all 0.3s ease;
}

.rominext-box-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 1rem 0 rgba(108, 117, 125, 0.15);
}

/* Info Rominext Box - Blue theme */
.rominext-box-info {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    border: 1px solid #b8daff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
}

.rominext-box-info:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(0, 123, 255, 0.2);
}

/* Warning Rominext Box - Yellow theme */
.rominext-box-warning {
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(255, 193, 7, 0.15);
    transition: all 0.3s ease;
}

.rominext-box-warning:hover {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(255, 193, 7, 0.2);
}

/* Success Rominext Box - Green theme */
.rominext-box-success {
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(40, 167, 69, 0.15);
    transition: all 0.3s ease;
}

.rominext-box-success:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #f0fff4 100%);
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(40, 167, 69, 0.2);
}

/* Danger Rominext Box - Red theme */
.rominext-box-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(220, 53, 69, 0.15);
    transition: all 0.3s ease;
}

.rominext-box-danger:hover {
    background: linear-gradient(135deg, #ffeaea 0%, #fff5f5 100%);
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 2rem 0 rgba(220, 53, 69, 0.2);
}

/* Compact Rominext Box - Smaller padding */
.rominext-box-compact {
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Large Rominext Box - More padding */
.rominext-box-large {
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Rominext Box Header */
.rominext-box-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    font-weight: 600;
}

.rominext-box-header h1,
.rominext-box-header h2,
.rominext-box-header h3,
.rominext-box-header h4,
.rominext-box-header h5,
.rominext-box-header h6 {
    margin: 0;
    color: white;
}

/* Rominext Box with Icon */
.rominext-box-with-icon {
    position: relative;
    padding-left: 4rem;
}

.rominext-box-icon {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    color: #28a745;
    font-size: 1rem;
}

/* Form Section Box */
.rominext-form-section {
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.75rem 0 rgba(58, 59, 69, 0.1);
}

/* Metric Card - For displaying statistics */
.rominext-metric-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.75rem 0 rgba(58, 59, 69, 0.1);
    transition: all 0.3s ease;
}

.rominext-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 1rem 0 rgba(58, 59, 69, 0.15);
}

.rominext-metric-number {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
    display: block;
}

.rominext-metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Analysis Card - For content analysis results */
.rominext-analysis-card {
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
    border: 1px solid #d4edda;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(40, 167, 69, 0.1);
    overflow: hidden;
}

.rominext-analysis-card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.rominext-analysis-card-body {
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rominext-box,
    .rominext-box-primary,
    .rominext-box-secondary,
    .rominext-box-info,
    .rominext-box-warning,
    .rominext-box-success,
    .rominext-box-danger {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .rominext-box-with-icon {
        padding-left: 3rem;
    }
    
    .rominext-box-icon {
        left: 1rem;
        top: 1rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.875rem;
    }
    
    .rominext-metric-number {
        font-size: 1.5rem;
    }
}

/* Animation classes */
.rominext-box-fade-in {
    animation: rominextFadeIn 0.5s ease-in-out;
}

@keyframes rominextFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rominext-box-slide-in {
    animation: rominextSlideIn 0.5s ease-in-out;
}

@keyframes rominextSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
