:root {
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --secondary: #1E293B;
    --accent: #F59E0B;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --success: #10B981;
    --error: #EF4444;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 200ms ease;
    --font-base: 18px;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    font-size: var(--font-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.view {
    display: none;
    height: 100%;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: flex;
}

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

.hidden {
    display: none !important;
}

/* Login View */
#login-view {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #0F172A 100%);
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.login-header h1 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input {
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5em;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.input-group input::placeholder {
    letter-spacing: normal;
    color: #CBD5E1;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.version {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard View */
#dashboard-view {
    background: var(--background);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.operator-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.operator-info {
    display: flex;
    flex-direction: column;
}

.operator-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.operator-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--success);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--background);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon.small {
    width: 32px;
    height: 32px;
}

.btn-icon.small svg {
    width: 16px;
    height: 16px;
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 100%);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.gps-status-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.gps-indicator {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.gps-indicator.error {
    background: linear-gradient(135deg, var(--error) 0%, #F87171 100%);
}

.gps-indicator svg {
    width: 20px;
    height: 20px;
}

.gps-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gps-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.gps-coords {
    font-family: 'Outfit', monospace;
    font-size: 0.9375rem;
    font-weight: 500;
}

.capture-section {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.capture-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-btn-inner {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
    transition: var(--transition);
}

.capture-btn:hover .capture-btn-inner {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.5);
}

.capture-btn-inner svg {
    width: 32px;
    height: 32px;
}

.capture-btn span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.recent-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.section-header h2 {
    font-size: 1.125rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 0.6875rem;
    font-weight: 500;
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.photo-card {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--background);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 12px;
    color: white;
    font-size: 0.875rem;
}

.photo-card-overlay span {
    display: block;
}

.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.875rem;
}

/* Photos List for History */
.photos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-item {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.photo-item-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-item-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.photo-item-value {
    font-weight: 500;
    font-size: 1rem;
}

.photo-item-gps {
    font-family: 'Outfit', monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.history-filters {
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.history-filters .filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--surface);
    color: var(--text-primary);
}

/* Capture View */
#capture-view {
    background: #000;
}

#capture-view .app-header {
    background: transparent;
    color: white;
    border-bottom: none;
}

#capture-view .app-header h2 {
    color: white;
}

#capture-view .back-btn {
    color: white;
}

.camera-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

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

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.overlay-top {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    padding: 20px;
    margin: -20px;
    margin-bottom: 0;
}

.capture-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: white;
}

.capture-operator {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.capture-datetime {
    font-family: 'Outfit', monospace;
    font-size: 0.9375rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.overlay-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 20px;
    margin: -20px;
    margin-top: 0;
}

.capture-gps {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-family: 'Outfit', monospace;
    font-size: 0.9375rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.capture-gps svg {
    width: 16px;
    height: 16px;
}

.camera-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    pointer-events: none;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid white;
}

.frame-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.frame-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.capture-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    display: flex;
    justify-content: center;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.capture-shutter {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-shutter:active {
    transform: scale(0.9);
}

.shutter-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    transition: var(--transition);
}

.capture-shutter:active .shutter-inner {
    background: var(--primary);
}

.upload-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.upload-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* History View */
.week-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.week-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.week-label {
    font-weight: 600;
    font-size: 0.9375rem;
}

.week-dates {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.history-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Admin View */
.admin-filters {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.filter-select, .filter-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text-primary);
}

.admin-stats {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--background);
}

.admin-stat {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.admin-stat .stat-value {
    font-size: 1.25rem;
}

.admin-stat .stat-label {
    font-size: 0.875rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

#modal-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #000;
}

.modal-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-row {
    display: flex;
    justify-content: space-between;
}

.modal-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-value {
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-content .btn-primary {
    margin: 0 20px 20px;
}

/* Toast */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.success {
    border-left-color: var(--success);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-icon.success { color: var(--success); }
.toast-icon.error { color: var(--error); }

.toast-message {
    font-size: 0.875rem;
}

/* Responsive */
@media (min-width: 768px) {
    .dashboard-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 24px 24px 0 0;
    }
}

/* Calendar */
.calendar-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

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

.calendar-header span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9375rem;
    position: relative;
}

.calendar-day:hover {
    background: var(--background);
}

.calendar-day.other-month {
    color: #CBD5E1;
}

.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.calendar-day.has-photos {
    position: relative;
}

.calendar-day.has-photos::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--success);
    border-radius: 50%;
}

.calendar-day.today.has-photos::after {
    background: white;
}

.calendar-day.selected {
    background: var(--secondary);
    color: white;
}

.day-photos {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.day-photos.hidden {
    display: none;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
}

.admin-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-content {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.admin-content.hidden {
    display: none;
}

/* Operators */
.operators-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.operators-header h3 {
    font-size: 1rem;
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-primary.small svg {
    width: 16px;
    height: 16px;
}

.operators-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.operator-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.operator-card .operator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.operator-card-info {
    flex: 1;
}

.operator-card-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.operator-card-code {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.operator-card-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
}

.operator-card-status.active {
    color: var(--success);
}

.operator-card-status.inactive {
    color: var(--error);
}

.operator-card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon.delete {
    color: var(--error);
}

.btn-icon.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Tracking */
.tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tracking-header h3 {
    font-size: 1rem;
}

.tracking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tracking-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow);
}

.tracking-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tracking-item .operator-avatar {
    width: 40px;
    height: 40px;
}

.tracking-item-info {
    flex: 1;
}

.tracking-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.tracking-item-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tracking-item-coords {
    font-family: 'Outfit', monospace;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.tracking-item-last-update {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Modal Small */
.modal-small {
    max-width: 360px;
    padding: 24px;
}

.modal-small h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn-primary {
    flex: 1;
}

.btn-secondary {
    flex: 1;
    padding: 12px 16px;
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border);
}
