* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================== */
/*     TELA DE LOGIN     */
/* ===================== */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    margin-bottom: 30px;
}

.logo i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

.logo h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

/* Mensagem de erro */
.error-msg {
    background: #ffe0e0;
    color: #c0392b;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Campos de input */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Botão de login */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Botões primário e secundário */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px 5px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Conta demo */
.demo-accounts {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.demo-accounts code {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    color: #333;
}

/* Welcome */
.welcome h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* ===================== */
/*      DASHBOARD        */
/* ===================== */
.dashboard {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dashboard header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo i {
    font-size: 1.8rem;
    color: #667eea;
}

.header-logo h1 {
    font-size: 1.4rem;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    color: #555;
    font-weight: 500;
}

.btn-logout {
    color: #ff4757;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #ff4757;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ff4757;
    color: white;
}

/* Cards de estatísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-card > i {
    font-size: 2rem;
    padding: 22px;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card h3 {
    font-size: 1.8rem;
    color: #333;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card span {
    color: #888;
    font-weight: 500;
    font-size: 14px;
}

/* Conteúdo */
.content {
    padding: 0 40px 40px;
    background: white;
    margin: 0 40px 40px;
    border-radius: 16px;
    padding: 30px 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.content h2 {
    color: #333;
    margin-bottom: 10px;
}

.content p {
    color: #666;
    font-size: 16px;
}

/* ===================== */
/*      RESPONSIVO       */
/* ===================== */
@media (max-width: 768px) {
    .login-box {
        margin: 10px;
        padding: 30px 20px;
    }

    .dashboard header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .content {
        margin: 0 20px 20px;
    }
}

/* ===================== */
/*   EDITAR VIAGEM       */
/* ===================== */
.dashboard main {
    padding: 30px 40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.page-header h2 {
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: #667eea;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.form-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #667eea;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.btn-danger {
    padding: 12px 25px;
    background: white;
    color: #ff4757;
    border: 2px solid #ff4757;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-2px);
}

.form-card .btn-primary {
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mockup-note {
    margin-top: 20px;
    padding: 12px 18px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 13px;
}

/* Responsivo do form */
@media (max-width: 768px) {
    .dashboard main {
        padding: 20px;
    }
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-actions {
        flex-direction: column-reverse;
    }
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
}
