/* B&A Support - Logged In User Panel Styles */

/* Welcome Bar */
.ba-st-welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #D63031, #E67E22);
    color: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.ba-st-welcome-text h3 {
    margin: 0 0 5px 0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 18px;
}

.ba-st-welcome-text p {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

.ba-st-logout-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ba-st-logout-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    text-decoration: none;
}

/* Stats Grid */
.ba-st-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.ba-st-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-top: 4px solid #ddd;
}

.ba-st-stat-total {
    border-top-color: #D63031;
}

.ba-st-stat-open {
    border-top-color: #27ae60;
}

.ba-st-stat-progress {
    border-top-color: #E67E22;
}

.ba-st-stat-closed {
    border-top-color: #95a5a6;
}

.ba-st-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: 'Vazirmatn', sans-serif;
    margin-bottom: 5px;
}

.ba-st-stat-label {
    font-size: 14px;
    color: #666;
    font-family: 'Vazirmatn', sans-serif;
}

/* Action Buttons */
.ba-st-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.ba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.ba-btn-primary {
    background: linear-gradient(135deg, #D63031, #b52525);
    color: #ffffff !important;
}

.ba-btn-primary:hover {
    background: linear-gradient(135deg, #e85656, #D63031);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.3);
}

.ba-btn-secondary {
    background: #1a1a2e;
    color: #ffffff !important;
}

.ba-btn-secondary:hover {
    background: #2d2d44;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

/* Recent Tickets */
.ba-st-recent-tickets {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ba-st-recent-tickets h4 {
    margin: 0 0 20px 0;
    font-family: 'Vazirmatn', sans-serif;
    color: #1a1a2e;
    font-size: 16px;
}

.ba-st-tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ba-st-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #D63031;
    transition: all 0.3s;
}

.ba-st-ticket-item:hover {
    background: #f1f3f5;
    transform: translateX(-5px);
}

.ba-st-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ba-st-ticket-title {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 15px;
}

.ba-st-ticket-title:hover {
    color: #D63031;
    text-decoration: none;
}

.ba-st-ticket-date {
    font-size: 12px;
    color: #999;
    font-family: 'Vazirmatn', sans-serif;
}

.ba-st-ticket-badges {
    display: flex;
    gap: 8px;
}

.ba-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
}

/* Status Badges */
.ba-status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.ba-status-open {
    background: #e8f5e9;
    color: #2e7d32;
}

.ba-status-in-progress {
    background: #fff3e0;
    color: #ef6c00;
}

.ba-status-waiting {
    background: #fff8e1;
    color: #f9a825;
}

.ba-status-resolved {
    background: #e8f5e9;
    color: #2e7d32;
}

.ba-status-closed {
    background: #f5f5f5;
    color: #757575;
}

/* Priority Badges */
.ba-priority-low {
    background: #f5f5f5;
    color: #757575;
}

.ba-priority-normal {
    background: #e3f2fd;
    color: #1976d2;
}

.ba-priority-high {
    background: #fff3e0;
    color: #ef6c00;
}

.ba-priority-urgent {
    background: #ffebee;
    color: #c62828;
}

/* Empty State */
.ba-st-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ba-st-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ba-st-empty-state h4 {
    margin: 0 0 10px 0;
    font-family: 'Vazirmatn', sans-serif;
    color: #1a1a2e;
}

.ba-st-empty-state p {
    margin: 0 0 20px 0;
    font-family: 'Vazirmatn', sans-serif;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .ba-st-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ba-st-welcome-bar {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ba-st-actions {
        flex-direction: column;
    }
    
    .ba-st-ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ba-st-ticket-badges {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .ba-st-stats-grid {
        grid-template-columns: 1fr;
    }
}
