:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-dark: #0f172a;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.px-safe {
    padding-left: max(1rem, env(safe-area-inset-left)) !important;
    padding-right: max(1rem, env(safe-area-inset-right)) !important;
}

/* Touch Friendly Targets for Mobile */
button, .btn, input, select, textarea {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .btn-primary-custom, .btn {
        min-height: 44px;
    }
    .card-custom {
        border-radius: 12px;
    }
    #map {
        height: 420px;
    }
}

main {
    flex: 1;
}

.bg-dark-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.card-custom {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

.card-header-custom {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.signature-container {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    position: relative;
}

canvas#signaturePad {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    cursor: crosshair;
}

#map {
    height: 600px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.badge-status {
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

/* Skeleton UI Loader */
.skeleton-line {
    height: 18px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.4s infinite ease-in-out;
    border-radius: 6px;
    display: inline-block;
    width: 100%;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
