:root {
    --accent: #F59E0B; /* Yellow/Amber accent */
    --accent-d: #D97706; /* Darker amber */
    --accent-l: #FEF3C7; /* Lighter amber */
    --bg: #F8FAFC;
    --surf: #FFFFFF;
    --border: #E2E8F0;
    --text: #0F172A;
    --t2: #475569;
    --t3: #94A3B8;
    
    --green: #10B981;
    --red: #EF4444;
    --blue: #3B82F6;
    
    --font: 'Inter', 'Segoe UI', sans-serif;
    --r: 12px;
    --rl: 16px;
    --rx: 24px;
    --sh: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sh2: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tr: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    font-family: var(--font);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.asist-header {
    background: var(--surf);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.asist-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.asist-header h1 i {
    color: var(--accent);
}

.asist-container {
    padding: 1.5rem 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.asist-card {
    background: var(--surf);
    border-radius: var(--rl);
    padding: 1.5rem;
    box-shadow: var(--sh);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.asist-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text);
}

.asist-form-group {
    margin-bottom: 1.25rem;
}

.asist-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 0.5rem;
}

.asist-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--font);
    transition: var(--tr);
    background: var(--bg);
    outline: none;
}

.asist-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-l);
    background: var(--surf);
}

.asist-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--r);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: var(--tr);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.asist-btn:hover {
    background: var(--accent-d);
    box-shadow: var(--sh);
}

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

.asist-btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent-d);
}

.asist-btn-outline:hover {
    background: var(--accent-l);
}

/* Dashboard Action Buttons */
.asist-action {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: var(--surf);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--tr);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.asist-action:hover {
    border-color: var(--accent);
    background: var(--accent-l);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}

.asist-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-l);
    color: var(--accent-d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.asist-action-content {
    flex: 1;
}

.asist-action-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.asist-action-desc {
    font-size: 0.85rem;
    color: var(--t2);
}

/* Colors for specific actions */
.act-green .asist-action-icon { background: #D1FAE5; color: var(--green); }
.act-green:hover { border-color: var(--green); background: #ECFDF5; }

.act-red .asist-action-icon { background: #FEE2E2; color: var(--red); }
.act-red:hover { border-color: var(--red); background: #FEF2F2; }

.act-blue .asist-action-icon { background: #DBEAFE; color: var(--blue); }
.act-blue:hover { border-color: var(--blue); background: #EFF6FF; }

.act-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

/* User Profile Badge */
.asist-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: var(--accent-l);
    border-radius: var(--rl);
    margin-bottom: 1.5rem;
}

.asist-profile-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.asist-profile-info {
    flex: 1;
}

.asist-profile-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.asist-profile-doc {
    font-size: 0.8rem;
    color: var(--t2);
}

.asist-profile-logout {
    color: var(--red);
    padding: 0.5rem;
    cursor: pointer;
}

/* Camara and GPS preview */
.asist-camera-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    background: #000;
    border-radius: var(--rl);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

#videoCamara {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#imgPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: absolute;
    top: 0; left: 0;
}

.asist-gps-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--r);
    font-size: 0.85rem;
    color: var(--t2);
    margin-bottom: 1rem;
}

.gps-ok { color: var(--green); }
.gps-wait { color: var(--accent); }
.gps-err { color: var(--red); }
