/**
 * AtomTI Support - Estilos Adicionais do Portal
 * Badges, Cards, Empty States, etc.
 */

/* Badges */
.atomti-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status Badges */
.atomti-badge-aberto {
    background: #DBEAFE;
    color: #1E40AF;
}

.atomti-badge-em-andamento {
    background: #FEF3C7;
    color: #92400E;
}

.atomti-badge-aguardando-cliente {
    background: #FED7AA;
    color: #9A3412;
}

.atomti-badge-resolvido {
    background: #D1FAE5;
    color: #065F46;
}

.atomti-badge-fechado {
    background: #F3F4F6;
    color: #4B5563;
}

/* Priority Badges */
.atomti-badge-baixa {
    background: #E0E7FF;
    color: #3730A3;
}

.atomti-badge-normal {
    background: #DBEAFE;
    color: #1E40AF;
}

.atomti-badge-alta {
    background: #FED7AA;
    color: #9A3412;
}

.atomti-badge-urgente {
    background: #FEE2E2;
    color: #991B1B;
}

.atomti-badge-category {
    background: #F3F4F6;
    color: #4B5563;
}

/* Stats Cards */
.atomti-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.atomti-stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.atomti-stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.atomti-stat-card.stat-primary {
    border-left-color: var(--primary-color);
}

.atomti-stat-card.stat-success {
    border-left-color: var(--success-color);
}

.atomti-stat-card.stat-warning {
    border-left-color: var(--warning-color);
}

.atomti-stat-card.stat-error {
    border-left-color: var(--error-color);
}

.atomti-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.atomti-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-primary .atomti-stat-icon {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.stat-success .atomti-stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-warning .atomti-stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-error .atomti-stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.atomti-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.atomti-stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.atomti-stat-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.atomti-stat-change.positive {
    color: var(--success-color);
}

.atomti-stat-change.negative {
    color: var(--error-color);
}

/* Empty States */
.atomti-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.atomti-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.atomti-empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.atomti-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Tables */
.atomti-tickets-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.atomti-tickets-table thead {
    background: #F9FAFB;
}

.atomti-tickets-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.atomti-tickets-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.atomti-tickets-table tbody tr {
    transition: background 0.2s;
}

.atomti-tickets-table tbody tr:hover {
    background: #F9FAFB;
}

.atomti-tickets-table tbody tr:last-child td {
    border-bottom: none;
}

/* Select Customizado */
.atomti-select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.atomti-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Alerts */
.atomti-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.atomti-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success-color);
}

.atomti-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--error-color);
}

.atomti-alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid var(--warning-color);
}

.atomti-alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--info-color);
}

/* Timeline (Chat) */
.atomti-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.atomti-timeline-item {
    display: flex;
    gap: 15px;
}

.atomti-timeline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.atomti-timeline-content {
    flex: 1;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.atomti-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.atomti-timeline-author {
    font-weight: 600;
    color: var(--text-primary);
}

.atomti-timeline-date {
    font-size: 12px;
    color: var(--text-muted);
}

.atomti-timeline-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.atomti-timeline-attachments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.atomti-attachment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.atomti-attachment:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .atomti-container {
        padding: 15px;
    }
    
    .atomti-portal-header .atomti-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .atomti-portal-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .atomti-portal-nav a {
        width: 100%;
    }
    
    .atomti-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .atomti-form-row {
        flex-direction: column;
    }
    
    .atomti-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}



