/* Autel Mobile App Custom Stylesheet */

:root {
    --autel-primary: #00A859;
    --autel-primary-dark: #008F4C;
    --autel-gradient: linear-gradient(135deg, #00C868 0%, #00A859 100%);
    --autel-gradient-green: linear-gradient(90deg, #00A859, #008F4C);
    --autel-bg: #F2F4F7;
    --autel-card-bg: #FFFFFF;
    --autel-text-main: #181A1B;
    --autel-text-muted: #6B7280;
    --autel-green: #00A859;
    --autel-blue: #1989fa;
    --autel-red: #00A859;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #000000;
    color: var(--autel-text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.mobile-wrapper {
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
    background-color: var(--autel-bg);
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.mobile-content {
    flex: 1;
    padding-bottom: 75px;
}

.no-bottom-nav .mobile-content {
    padding-bottom: 20px;
}

/* Header */
.autel-top-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #FFFFFF;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #F0F0F0;
}

.autel-top-nav .nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.autel-top-nav .nav-back {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    color: #374151;
}

/* Bottom Navigation Bar */
.autel-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    height: 54px;
    background: #FFFFFF;
    border-top: 1px solid #ECEEF2;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 1;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-icon-box {
    width: 28px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.nav-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nav-tab-item span {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
}

.nav-tab-item.active span {
    color: #00A859 !important;
    font-weight: 700 !important;
}

/* UI Cards */
.autel-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: var(--autel-gradient);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.28);
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-primary:active {
    opacity: 0.88;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    background: #F3F4F6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* Inputs */
.autel-input-group {
    background: #F7F8FA;
    border-radius: 12px;
    padding: 4px 14px;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    border: 1px solid #E5E7EB;
    height: 48px;
}

.autel-input-group i,
.autel-input-group img {
    margin-right: 10px;
    color: #9CA3AF;
}

.autel-input-group input,
.autel-input-group select {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #1F2937;
}

/* Live Notice Marquee */
.autel-notice-bar {
    display: flex;
    align-items: center;
    background: #F0FDF4;
    padding: 8px 14px;
    margin: 10px 14px;
    border-radius: 10px;
    overflow: hidden;
    color: #00A859;
    font-size: 12px;
}

.autel-notice-bar i {
    margin-right: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.autel-notice-bar .marquee-text {
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Toast Messages */
.autel-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    animation: fadeInOut 2.8s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    85% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}
