/* style.css */
:root {
    --primary: #4a6bdf;
    --primary-dark: #3a56c0;
    --secondary: #f8f9fa;
    --text: #333;
    --text-light: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f5f7ff;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.header h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.form-section, .ticket-section {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

input, select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.2);
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover, .submit-btn:focus {
    background-color: var(--primary-dark);
}

.ticket-preview {
    background: linear-gradient(135deg, #4a6bdf, #6c43a8);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ticket {
    background: white;
    color: var(--text);
    padding: 20px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 350px;
    box-shadow: var(--shadow);
}

.ticket-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--border);
}

.ticket-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.ticket-body {
    margin-bottom: 20px;
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ticket-info strong {
    color: var(--primary);
}

.ticket-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px auto;
    border: 4px solid var(--primary);
    display: block;
}

.ticket-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Estados de foco para acessibilidade */
input:focus, select:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ticket {
    animation: fadeIn 0.5s ease-out;
}