/* Dashboard Specific Styles */

/* Navigation Menu */
.main-nav {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-link i {
    font-size: 18px;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.welcome-section i {
    margin-right: 10px;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Dashboard Boxes */
.dashboard-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.dashboard-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.box-large {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .box-large {
        grid-column: span 1;
    }
}

/* Box Header */
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
}

.box-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-header i {
    color: #667eea;
    font-size: 1.4rem;
}

.box-action-btn {
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.box-action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.box-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Box Content */
.box-content {
    padding: 25px;
}

.box-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.box-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.box-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.box-btn i {
    margin-right: 8px;
}

/* Placeholder List */
.placeholder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.placeholder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.placeholder-item:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.placeholder-item i {
    color: #667eea;
    font-size: 1.2rem;
}

.placeholder-item span:first-of-type {
    flex: 1;
    color: #2d3748;
    font-weight: 600;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-active {
    background: #c6f6d5;
    color: #22543d;
}

.badge-inactive {
    background: #fed7d7;
    color: #742a2a;
}

/* Stats Preview */
.stats-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #718096;
    font-size: 0.85rem;
}

.stat-value {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
}

/* User Info Card */
.user-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 3rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.detail-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-value {
    color: #2d3748;
    font-weight: 600;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
}

.quick-stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
    font-size: 1.5rem;
}

.quick-stat-icon.blue {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.quick-stat-icon.green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.quick-stat-icon.red {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.quick-stat-icon.purple {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.quick-stat-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-stat-value {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.quick-stat-label {
    color: #718096;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .box-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-info-card {
        padding: 15px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
}

/* ==================== STATISTICHE TOTALI STYLES ==================== */

.total-stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.stats-header-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 10px;
}

.stats-controls-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stats-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-form .form-group {
    display: flex;
    flex-direction: column;
}

.stats-form label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-form label i {
    color: #667eea;
}

.execute-all-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.execute-all-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.execute-all-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.execute-all-btn i {
    font-size: 1.2rem;
}

.stats-info {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-info i {
    color: #667eea;
}

/* Progress Area */
.stats-progress-area {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-status {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.progress-bar-container {
    background: #e2e8f0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-log {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.progress-log-entry {
    padding: 5px 0;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.progress-log-entry:last-child {
    border-bottom: none;
}

.progress-log-entry.success {
    color: #48bb78;
}

.progress-log-entry.error {
    color: #f56565;
}

.progress-log-entry.info {
    color: #667eea;
}

/* Results Area */
.stats-results-area {
    margin-top: 30px;
}

.results-summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.results-summary-card h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-stat-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.summary-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-stat-item.large {
    grid-column: span 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.summary-stat-item.large .stat-label,
.summary-stat-item.large .stat-value {
    color: white;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.green {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.stat-icon.blue {
    background: rgba(66, 153, 225, 0.2);
    color: #4299e1;
}

.stat-icon.red {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.summary-stat-item.large .stat-icon.green {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #718096;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.summary-stat-item.large .stat-value {
    font-size: 2.5rem;
}

.date-range-info {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.date-range-info i {
    color: #667eea;
}

/* Detailed Results */
.detailed-results-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.detailed-results-card h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.panel-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.panel-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-result-item.success {
    border-left: 4px solid #48bb78;
}

.panel-result-item.failed {
    border-left: 4px solid #f56565;
}

.panel-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-status-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.panel-status-icon.success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.panel-status-icon.failed {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
}

.panel-name {
    color: #2d3748;
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}

.panel-earnings {
    color: #48bb78;
    font-weight: 700;
    font-size: 1.2rem;
}

.panel-error {
    color: #f56565;
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive for Stats */
@media (max-width: 768px) {
    .stats-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .summary-stat-item.large {
        grid-column: span 1;
    }
    
    .panel-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

