:root {
    /* Paleta de Cores Azul e Branca (Premium) */
    --primary: #0056b3;
    --primary-light: #4da3ff;
    --secondary: #f4f7f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: transparent;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.hidden { display: none !important; }

/* Visualização fluída e responsiva */
.view {
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span { color: var(--text-dark); }

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-greeting {
    font-size: 14px;
    font-weight: 600;
}

/* Formulários e Botões */
.form-group { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.w-100 { width: 100%; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    background-color: #f8fafc;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-light);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.1);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:hover { background-color: #004494; }

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-dark);
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover { background-color: #cbd5e1; }

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Telas de Login */
#view-login {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: transparent;
    display: none;
}

#view-login.active { display: flex; }

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.brand { text-align: center; margin-bottom: 30px; }
.brand h1 { font-size: 42px; margin-bottom: 5px; }
.brand p { color: var(--text-light); font-size: 15px; }

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Radio Cards para Perfil */
.radio-group { display: flex; gap: 12px; }
.radio-btn {
    flex: 1;
    border: 2px solid var(--border);
    padding: 14px 8px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: #fff;
    color: var(--text-light);
}

.radio-btn:has(input:checked) {
    border-color: var(--primary);
    background-color: #eff6ff;
    color: var(--primary);
}

.radio-btn input { display: none; }

/* Dashboard Padrões */
.dashboard h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 25px;
}

/* Job Cards */
.order-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-left: 5px solid var(--primary);
    transition: transform 0.2s;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-open { background: #fef3c7; color: #b45309; }
.status-closed { background: #d1fae5; color: #047857; }

.order-desc {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bids-area {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.bids-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.bid-info strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
}
.bid-info span {
    font-size: 13px;
    color: var(--text-light);
}

.btn-accept {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* Modal UI */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5); /* Escurecimento moderno */
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.desc-preview {
    font-style: italic;
    color: var(--text-light);
    margin-top: 15px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--primary-light);
}

.pay-box {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.small-text { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.error-msg { color: #e11d48; font-size: 13px; font-weight: 600; display: block; margin-top: 5px; animation: fadeIn 0.3s; }

/* Tabs UI */
.tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: #e2e8f0;
    color: var(--text-light);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.urgency-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    display: inline-block;
    margin-top: 5px;
}

.urgency-emergency { background: #fee2e2; color: #b91c1c; }
.urgency-normal { background: #e0e7ff; color: #4338ca; }

