/* EV Tickets Pro - Frontend Public CSS */

.evtp-frontend-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    color: #1e293b;
}

.evtp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    padding: 24px;
}

.evtp-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.evtp-form-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evtp-form-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.evtp-form-header p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #64748b;
}

.evtp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.evtp-field-full {
    grid-column: span 2;
}

.evtp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.evtp-field input, .evtp-field select, .evtp-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.evtp-field input:focus, .evtp-field select:focus, .evtp-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.evtp-user-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
}

.evtp-form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.evtp-alert-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.evtp-alert-msg.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.evtp-alert-msg.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Portal Styles */
.evtp-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.evtp-portal-header h3 { margin: 0; font-size: 20px; font-weight: 700; }

.evtp-email-lookup {
    display: flex;
    gap: 8px;
}

.evtp-email-lookup input {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 250px;
}

.evtp-ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.evtp-ticket-table th, .evtp-ticket-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.evtp-ticket-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.evtp-ticket-table tr:hover td {
    background: #f8fafc;
    cursor: pointer;
}

/* Customer Conversation View */
.evtp-ticket-view-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.evtp-view-back {
    margin-bottom: 8px;
}

.evtp-ticket-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.evtp-badge-num {
    font-weight: 700;
    color: #2563eb;
    margin-right: 8px;
}

.evtp-thread-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 6px;
}

.evtp-cust-msg {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
}

.evtp-cust-msg.agent-reply {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.evtp-reply-box {
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}
