/* Widgets Styles */

.widgets-container {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.widget {
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.widget-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 20px;
}

.widget-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.widget-header i {
    margin-right: 10px;
}

.widget-content {
    padding: 25px;
}

/* Recent Orders Widget */
.recent-orders-grid {
    display: grid;
    gap: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 10px;
    transition: background 0.3s;
}

.order-item:hover {
    background: var(--border);
}

.order-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-info strong {
    color: var(--text-primary);
    font-size: 15px;
}

.order-info span {
    color: var(--text-secondary);
    font-size: 14px;
}

.order-info small {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}

/* Reviews Widget */
.review-form {
    margin-bottom: 25px;
}

.review-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
    background: var(--surface-light);
    color: var(--text-primary);
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.review-form .btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-form .btn:hover {
    transform: translateY(-2px);
}

.review-login-prompt {
    padding: 15px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.review-login-prompt p {
    margin: 0;
    color: var(--text-secondary);
}

.review-login-prompt a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.reviews-list {
    display: grid;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.review-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 10px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-header strong {
    color: var(--text-primary);
    font-size: 15px;
}

.review-header small {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.7;
}

.review-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Uptime Status Widget */
.uptime-status {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
}

.uptime-status.status-green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.uptime-status.status-yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.uptime-status.status-red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.status-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.status-green .status-indicator {
    background: #10b981;
    color: white;
}

.status-yellow .status-indicator {
    background: #f59e0b;
    color: white;
}

.status-red .status-indicator {
    background: #ef4444;
    color: white;
}

.status-info {
    flex: 1;
}

.status-text {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-uptime {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* No Data Message */
.no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-style: italic;
    opacity: 0.7;
}

/* Stats Section Widget */
.widget-stats-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 60px 0;
    margin: 0;
    width: 100%;
}

.widget-stats-section:hover {
    transform: none;
    box-shadow: none;
}

.stats-section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-card .stat-value {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .widgets-container {
        gap: 20px;
    }
    
    .widget-header {
        padding: 15px;
    }
    
    .widget-header h3 {
        font-size: 18px;
    }
    
    .widget-content {
        padding: 20px;
    }
    
    .order-item {
        padding: 12px;
    }
    
    .review-item {
        padding: 12px;
    }
    
    .uptime-status {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-card .stat-icon {
        font-size: 36px;
    }
    
    .stat-card .stat-value {
        font-size: 32px;
    }
}
