:root {
    --primary-green: #27ae60;
    --bg-white: #ffffff;
    --text-black: #2d3436;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --danger-red: #e74c3c;
    --warning-amber: #f39c12;
    --dark-accent: #1a1a1a;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.phone-container {
    width: 100%;
    max-width: 450px; /* Optimized for mobile web view */
    height: 100vh; /* Full screen for PWA feel */
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.header {
    padding: 40px 20px 20px;
    background-color: var(--dark-accent);
    color: white;
    text-align: center;
    border-bottom: 4px solid var(--primary-green);
}
.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}
.header h1 span {
    color: var(--primary-green);
}
.header p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
}
.compliance-section {
    padding: 30px 20px;
    text-align: center;
    background: white;
}
.gauge-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 15px solid #eee;
    border-top: 15px solid var(--primary-green);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(45deg);
}
.gauge-inner {
    transform: rotate(-45deg);
}
.gauge-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-green);
}
.gauge-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}
.tasks-container {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
    overflow-y: auto; /* Enable scrolling for task list */
    padding-bottom: 100px; /* Space for nav bar and button */
}
.tasks-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.task-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    border-left: 6px solid #ccc;
    transition: transform 0.2s;
}
.task-card:active {
    transform: scale(0.98);
}
.task-card.done {
    border-left-color: var(--primary-green);
}
.task-card.pending {
    border-left-color: var(--warning-amber);
}
.task-icon {
    font-size: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-info {
    flex: 1;
}
.task-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-black);
}
.task-time {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}
.voice-btn {
    position: absolute;
    bottom: 90px; /* Elevated above nav bar */
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 75px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(39, 174, 96, 0.4);
    cursor: pointer;
    border: 4px solid white;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}
.voice-btn:active {
    transform: translateX(-50%) scale(0.92);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}
.mic-icon {
    width: 30px;
    height: 30px;
    fill: white;
}
.nav-bar {
    height: 70px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
}
.nav-item {
    font-size: 11px;
    color: #999;
    text-align: center;
    font-weight: 600;
    flex: 1; /* Space items evenly */
    cursor: pointer;
}
.nav-item.active {
    color: var(--primary-green);
}
