/**
 * AtomTI Support - Portal do Cliente
 * Estilos modernos e responsivos
 */

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --success-color: #10B981;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset e Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.atomti-support-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.atomti-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Page */
.atomti-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.atomti-login-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.atomti-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.atomti-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.atomti-login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.atomti-login-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Forms */
.atomti-form-group {
    margin-bottom: 20px;
}

.atomti-form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.atomti-form-group label i.dashicons {
    margin-right: 6px;
    font-size: 18px;
}

.atomti-form-group input[type="text"],
.atomti-form-group input[type="email"],
.atomti-form-group input[type="password"],
.atomti-form-group input[type="tel"],
.atomti-form-group textarea,
.atomti-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s;
}

.atomti-form-group input:focus,
.atomti-form-group textarea:focus,
.atomti-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.atomti-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.atomti-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.atomti-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.atomti-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.atomti-forgot-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.atomti-forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.atomti-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

.atomti-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.atomti-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.atomti-btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.atomti-btn-secondary:hover {
    background-color: var(--bg-white);
}

.atomti-btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.atomti-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.atomti-btn-block {
    width: 100%;
}

.atomti-login-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* Portal Header */
.atomti-portal-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.atomti-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.atomti-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.atomti-header-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.atomti-nav {
    display: flex;
    gap: 8px;
}

.atomti-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.atomti-nav-link:hover {
    background-color: var(--bg-light);
}

.atomti-nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

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

/* User Menu */
.atomti-user-menu {
    position: relative;
}

.atomti-user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
}

.atomti-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.atomti-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.atomti-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.atomti-dropdown-item:hover {
    background-color: var(--bg-light);
}

.atomti-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

/* Dashboard */
.atomti-dashboard {
    padding: 32px 0;
}

.atomti-page-header {
    margin-bottom: 32px;
}

.atomti-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.atomti-page-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* Stats Grid */
.atomti-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.atomti-stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.atomti-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.atomti-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    font-size: 28px;
}

.atomti-stat-total .atomti-stat-icon {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.atomti-stat-open .atomti-stat-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.atomti-stat-progress .atomti-stat-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.atomti-stat-resolved .atomti-stat-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.atomti-stat-sla-breach .atomti-stat-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.atomti-stat-content {
    flex: 1;
}

.atomti-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.atomti-stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Quick Actions */
.atomti-quick-actions {
    margin-bottom: 40px;
}

.atomti-quick-actions h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.atomti-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.atomti-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-white);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.2s;
}

.atomti-action-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

.atomti-action-card i.dashicons {
    font-size: 40px;
    color: var(--primary-color);
}

/* Section Header */
.atomti-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.atomti-section-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* Tickets Table */
.atomti-tickets-table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.atomti-tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.atomti-tickets-table thead {
    background-color: var(--bg-light);
}

.atomti-tickets-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.atomti-tickets-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.atomti-tickets-table tbody tr:hover {
    background-color: var(--bg-light);
}

.atomti-ticket-number {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.atomti-ticket-number:hover {
    text-decoration: underline;
}

.atomti-ticket-title {
    font-weight: 500;
}

/* Badges */
.atomti-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.atomti-badge-aberto {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.atomti-badge-em_andamento {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.atomti-badge-resolvido {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.atomti-badge-fechado {
    background-color: rgba(107, 114, 128, 0.1);
    color: var(--text-light);
}

/* Priority */
.atomti-priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}

.atomti-priority-baixa { color: var(--text-light); }
.atomti-priority-normal { color: var(--info-color); }
.atomti-priority-alta { color: var(--warning-color); }
.atomti-priority-urgente { color: var(--danger-color); }

/* SLA Badge */
.atomti-sla-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.atomti-sla-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.atomti-sla-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.atomti-sla-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* Empty State */
.atomti-empty-state {
    text-align: center;
    padding: 64px 32px;
}

.atomti-empty-state i.dashicons {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.atomti-empty-state p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .atomti-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .atomti-nav {
        width: 100%;
        overflow-x: auto;
    }
    
    .atomti-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .atomti-tickets-table {
        font-size: 12px;
    }
    
    .atomti-tickets-table th,
    .atomti-tickets-table td {
        padding: 12px 8px;
    }
}

