/* ============================================================ */
/* 🎨 suporte.css - Estilos para o Sistema de Chamados */
/* ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    background-color: #f9fafb;
    font-family: 'Inter', sans-serif;
    color: #111827;
}

.support-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.support-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.support-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.btn-back {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.btn-back:hover {
    color: #111827;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}

input[type="text"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Image Upload Container */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    margin-bottom: 10px;
}

.upload-area:hover {
    border-color: #4f46e5;
    background-color: #f5f3ff;
}

.upload-area p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-img {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* History Styles */
.ticket-list {
    margin-top: 40px;
}

.ticket-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ticket-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-aberto { background: #dcfce7; color: #166534; }
.status-em_analise { background: #fef9c3; color: #854d0e; }
.status-resolvido { background: #dbeafe; color: #1e40af; }
.status-fechado { background: #f3f4f6; color: #374151; }

.ticket-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 15px;
}

.btn-submit {
    background-color: #4f46e5;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #4338ca;
}

.btn-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Modal / Ticket Detail */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    padding: 30px;
    border-radius: 12px;
    overflow-y: auto;
}

.history-line {
    border-left: 2px solid #e5e7eb;
    margin: 20px 0 20px 10px;
    padding-left: 20px;
}

.history-item {
    position: relative;
    margin-bottom: 20px;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f46e5;
}
