/* dashboard.css - Dashboard specific styles */

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stats-overview .stat-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.stats-overview .stat-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-overview .stat-widget:nth-child(1) {
    border-top-color: var(--primary-color);
}

.stats-overview .stat-widget:nth-child(2) {
    border-top-color: #FF6B35;
}

.stats-overview .stat-widget:nth-child(3) {
    border-top-color: #4ECDC4;
}

.stats-overview .stat-widget:nth-child(4) {
    border-top-color: #7209B7;
}

.stats-overview .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stats-overview .stat-widget:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), #6C8EFF);
}

.stats-overview .stat-widget:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #FF6B35, #FF9E6D);
}

.stats-overview .stat-widget:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4ECDC4, #88D3CE);
}

.stats-overview .stat-widget:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #7209B7, #9D4EDD);
}

.stats-overview .stat-info h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.stats-overview .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stats-overview .stat-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats-overview .stat-change.positive {
    color: var(--success-color);
}

.stats-overview .stat-change.negative {
    color: var(--danger-color);
}

/* Social Widgets */
.social-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.social-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.social-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.order-widget {
    border-left: 4px solid var(--primary-color);
}

.buffpin-widget {
    border-left: 4px solid #FF6B35;
}

.playsentral-widget {
    border-left: 4px solid #4ECDC4;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.order-widget .widget-icon {
    background: linear-gradient(135deg, var(--primary-color), #6C8EFF);
}

.buffpin-widget .widget-icon {
    background: linear-gradient(135deg, #FF6B35, #FF9E6D);
}

.playsentral-widget .widget-icon {
    background: linear-gradient(135deg, #4ECDC4, #88D3CE);
}

.widget-title h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.widget-title p {
    font-size: 14px;
    color: #6c757d;
}

.widget-content {
    flex: 1;
    margin-bottom: 20px;
}

/* Order Widget Specific */
.widget-metric {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-metric:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-value .positive {
    color: var(--success-color);
}

.metric-label {
    font-size: 14px;
    color: #6c757d;
}

/* Balance Widget Specific */
.balance-display {
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.balance-change {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-change.positive {
    color: var(--success-color);
}

.balance-change.negative {
    color: var(--danger-color);
}

.balance-details {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e5f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    font-size: 14px;
    color: #6c757d;
}

.detail-item span:last-child {
    font-weight: 600;
}

.detail-item .positive {
    color: var(--success-color);
}

.detail-item .negative {
    color: var(--danger-color);
}

.detail-item .warning {
    color: var(--warning-color);
}

.detail-item .available {
    color: var(--primary-color);
}

/* Widget Footer */
.widget-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e5f0;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.widget-footer span {
    font-size: 14px;
    color: #6c757d;
}

/* Orders Section */
.orders-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.order-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 5px solid;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.completed-order {
    border-top-color: var(--success-color);
}

.failed-order {
    border-top-color: var(--danger-color);
}

.total-order {
    border-top-color: var(--primary-color);
}

.pending-order {
    border-top-color: var(--warning-color);
}

.stat-card .stat-info h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-card .stat-info p {
    font-size: 28px;
    font-weight: 700;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.completed-order .stat-icon {
    background-color: rgba(76, 201, 240, 0.15);
    color: var(--success-color);
}

.failed-order .stat-icon {
    background-color: rgba(247, 37, 133, 0.15);
    color: var(--danger-color);
}

.total-order .stat-icon {
    background-color: rgba(67, 97, 238, 0.15);
    color: var(--primary-color);
}

.pending-order .stat-icon {
    background-color: rgba(255, 158, 0, 0.15);
    color: var(--warning-color);
}

/* License Cards */
.license-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.license-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.license-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.license-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.license-availability {
    display: inline-block;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* License Section */
.license-section {
    margin-bottom: 40px;
}

/* Responsive Design for Dashboard */
@media (max-width: 1200px) {
    .stats-overview,
    .social-widgets,
    .license-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-overview,
    .social-widgets,
    .license-cards,
    .order-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-overview .stat-widget {
        flex-direction: column;
        text-align: center;
    }
    
    .widget-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .widget-footer .progress-bar {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
}