@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #269A9B; /* Teal Suitcase / Cyan accents */
    --primary-hover: #1C7778;
    --secondary-color: #0F1F2C; /* Dark Navy Partiu! text */
    --accent-color: #FDB535; /* Yellow Pin */
    
    --bg-color: #F8F9FA; /* Off-white */
    --surface-color: #FFFFFF;
    
    --text-main: #0F1F2C;
    --text-muted: #8D99AE;
    
    --success: #4CAF50;
    --danger: #FF5252;
    --warning: #FFC107;
    
    --border-color: #E2E8F0;

    /* Typography */
    --font-family: 'Outfit', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 49, 66, 0.04);
    --shadow-md: 0 8px 24px rgba(45, 49, 66, 0.08);
    --shadow-lg: 0 16px 32px rgba(45, 49, 66, 0.12);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 480px; /* Mobile first focus */
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--surface-color);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Cards (Glassmorphism inspired) */
.modal-content {
    background: var(--surface-color); width: 100%; max-width: 480px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; 
    padding: 30px 24px 250px 24px; /* Padding extra para não cortar datepickers */
    transform: translateY(100%); transition: transform 0.3s; 
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.close-modal { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }

/* Fullscreen Map */
.map-fullscreen-container {
    width: 100%; height: 100%; background: white;
    display: flex; flex-direction: column;
    position: relative;
}
.map-header {
    display: flex; gap: 10px; padding: 15px; background: white; z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); align-items: center;
}
.map-header .btn-back {
    background: none; border: none; font-size: 1.4rem; color: var(--text-main); cursor: pointer; padding: 5px;
}
.map-footer {
    padding: 15px; background: white; z-index: 10;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Header */
.app-header {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.app-title span {
    color: var(--primary-color);
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}
.password-wrapper .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}
.password-wrapper .form-control {
    padding-right: 45px;
}

/* Custom Alerts & Confirms */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 31, 44, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.2s ease-out forwards;
}

.custom-alert-box {
    background: var(--surface-color);
    width: 90%;
    max-width: 340px;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    animation: popIn 0.2s ease-out forwards;
}

@keyframes popIn {
    to { transform: scale(1); }
}

.custom-alert-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.custom-alert-message {
    font-size: 1.05rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    font-weight: 500;
}

.custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-alert-buttons .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Utils */
.hidden {
    display: none !important;
}
