/* Pop Vrum - Global Styles */
:root {
    --primary: #FF9500;
    --primary-dark: #E68600;
    --dark-bg: #0A0A0A;
    --card-bg: #1C1C1E;
    --card-bg-light: #2C2C2E;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-muted: #636366;
    --border: #38383A;
    --success: #34C759;
    --danger: #FF3B30;
    --warning: #FFCC00;
    --info: #5AC8FA;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Container principal */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

/* Header */
.app-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg);
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.back-btn:hover {
    background: var(--card-bg-light);
}
.back-btn svg {
    width: 20px;
    height: 20px;
}

/* Botões */
.btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark-bg);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,149,0,0.3);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px;
    font-size: 14px;
}
.btn-ghost:hover {
    color: var(--text-primary);
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}
.input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.input-field {
    width: 100%;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1.5px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}
.input-field::placeholder {
    color: var(--text-muted);
}
.input-field:focus {
    border-color: var(--primary);
    background: var(--card-bg-light);
}
.input-field.error {
    border-color: var(--danger);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.card:hover {
    border-color: var(--primary);
}
.card-select {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}
.card-select .card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-select .card-icon.orange {
    background: var(--primary);
}
.card-select .card-icon.green {
    background: #30D158;
}
.card-select .card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--dark-bg);
}
.card-select .card-content {
    flex: 1;
}
.card-select .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.card-select .card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.card-select .card-arrow {
    color: var(--text-secondary);
    transition: var(--transition);
}
.card-select:hover .card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Logo e Branding */
.brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
}
.brand-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    border: 2px solid var(--border);
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.brand-logo svg {
    width: 60px;
    height: 60px;
    color: var(--primary);
}
.brand-name {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.brand-slogan {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

/* Formulários */
.form-container {
    padding: 20px;
}
.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.form-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Links */
.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.link:hover {
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,10,10,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 400px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Bottom nav (mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 24px;
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
}
.nav-item.active {
    color: var(--primary);
}
.nav-item svg {
    width: 24px;
    height: 24px;
}

/* Map placeholder */
.map-container {
    width: 100%;
    height: 300px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.map-placeholder {
    text-align: center;
    color: var(--text-secondary);
}
.map-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--primary);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-searching { background: rgba(90,200,250,0.15); color: var(--info); }
.badge-accepted { background: rgba(255,204,0,0.15); color: var(--warning); }
.badge-in_progress { background: rgba(255,149,0,0.15); color: var(--primary); }
.badge-completed { background: rgba(52,199,89,0.15); color: var(--success); }
.badge-cancelled { background: rgba(255,59,48,0.15); color: var(--danger); }

/* Ride card */
.ride-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}
.ride-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ride-route {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.route-point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.route-point .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.route-point .dot.origin { background: var(--primary); }
.route-point .dot.destination { background: var(--success); }
.route-line {
    width: 2px;
    height: 20px;
    background: var(--border);
    margin-left: 4px;
}
.ride-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.ride-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Admin specific */
.admin-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card-bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
}

/* Hide scrollbar for mobile feel */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.slide-in-right {
    animation: slideInRight 0.3s ease;
}
