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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-gradient: linear-gradient(135deg, #fffdf5 0%, #f0e6d2 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(200, 150, 50, 0.2);
    --text-main: #3e2723;
    --text-muted: #6d4c41;
    --accent: #ffb300;
    --card-bg: #ffffff;
    --input-bg: rgba(0, 0, 0, 0.05);
    --border-color: rgba(200, 150, 50, 0.2);
    --font-main: "Poppins", sans-serif;
    --font-zesty: "Outfit", sans-serif;
    --font-mono: "Roboto Mono", monospace;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    position: relative;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

p,
span,
h1,
h2,
h3,
h4,
td,
div,
small,
strong {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-zesty);
    color: var(--text-main);
}

.zesty-text {
    font-family: var(--font-zesty);
    font-weight: 800;
    background: linear-gradient(135deg, #ff8f00, #ffb300, #ff6f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 143, 0, 0.2));
}

.brand {
    font-family: var(--font-zesty);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.zesty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #fff !important;
    font-family: var(--font-zesty);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(255, 152, 0, 0.45);
    transition: 0.2s ease;
    text-decoration: none;
}

.zesty-btn:hover {
    transform: translateY(-3px);
}

.zesty-btn.secondary {
    background: transparent;
    border: 2px solid #ff9800;
    color: #ff9800 !important;
    box-shadow: none;
}

.zesty-btn.secondary:hover {
    background: #ff9800;
    color: #fff !important;
}

.small-zesty {
    padding: 10px 18px;
    font-size: 12px;
    line-height: 1.2;
}

.btn-upload {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    background-color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-zesty);
}

.danger-btn {
    background: #ff4757 !important;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    flex-shrink: 0;
}

.sidebar li {
    padding: 15px;
    margin: 5px 0;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    font-weight: 500;
    align-items: center;
}

.sidebar li:hover,
.sidebar li.active {
    background: rgba(255, 255, 255, 0.5);
    color: var(--accent);
    font-weight: 700;
}

.main-content {
    flex: 1;
    padding: 20px 40px;
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    min-width: 0;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    display: flex;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 220px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.mobile-menu-dropdown button {
    background: none;
    border: none;
    text-align: left;
    padding: 12px;
    font-family: var(--font-zesty);
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 8px;
}

.mobile-menu-dropdown button:hover {
    background: var(--input-bg);
    color: var(--accent);
}

.mobile-dashboard-dropdown {
    top: 75px;
    right: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.card-temp .icon-box {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
}

.card-hum .icon-box {
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
}

.card-weight .icon-box {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.card-audio .icon-box {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.card-cam .icon-box {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info h3 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stat-info p {
    margin: 2px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 10px;
    color: var(--text-muted);
    max-width: 100%;
}

.badge-logonly {
    background: rgba(155, 89, 182, 0.16);
    color: #8e44ad;
}

.badge-warning {
    background: rgba(255, 71, 87, 0.18);
    color: #ff4757;
}

.badge-normal {
    background: rgba(46, 204, 113, 0.18);
    color: #2ecc71;
}

.status-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mini-status-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.mini-status-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.mini-pill {
    background: rgba(255, 179, 0, 0.12);
    color: #8a5600;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
}

.mini-status-body strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.mini-status-body small {
    color: var(--text-muted);
    display: block;
}

.chart-wrapper {
    padding: 20px;
    height: 350px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

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

.canvas-container {
    position: relative;
    height: calc(100% - 40px);
}

.live-indicator {
    font-size: 12px;
    color: var(--text-muted);
}

.blink-red {
    color: #ff5e62;
    animation: pulse-red 1s infinite;
}

.blink {
    width: 8px;
    height: 8px;
    background: #ff5e62;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-red 1s infinite;
    margin-right: 5px;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}

.table-responsive {
    overflow-x: auto;
}

#logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 10px;
    min-width: 600px;
}

#logs-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
}

#logs-table td {
    background: var(--card-bg);
    padding: 15px 20px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

#logs-table tr td:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-right: none;
    color: var(--accent);
    font-weight: bold;
    font-family: monospace;
}

#logs-table tr td:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-left: none;
}

.log-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.conf-text {
    font-family: var(--font-mono);
    font-weight: bold;
}

.pro-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.project-card {
    padding: 40px;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.tag {
    display: inline-block;
    background: rgba(255, 179, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #e65100;
    text-transform: uppercase;
    font-family: var(--font-zesty);
    margin-bottom: 12px;
}

.abstract-box {
    background: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #5d4037;
    font-size: 15px;
    border-radius: 0 10px 10px 0;
}

.project-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.daily-logs-toolbar {
    margin-bottom: 16px;
}

.daily-logs-note {
    color: var(--text-muted);
    font-size: 13px;
}

.daily-logs-list {
    display: grid;
    gap: 12px;
}

.daily-log-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.daily-log-info strong {
    display: block;
    font-size: 16px;
}

.daily-log-info small {
    color: var(--text-muted);
}

.daily-log-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-grid {
    display: grid;
    gap: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
}

.setting-info h4 {
    margin-bottom: 4px;
}

.setting-info p {
    color: var(--text-muted);
    font-size: 13px;
}

.setting-control {
    min-width: 220px;
}

.setting-control select,
.setting-control input[type="range"] {
    width: 100%;
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    width: 800px;
    height: 500px;
    max-width: 95vw;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-modal-content {
    width: min(1220px, 96vw);
    height: min(92vh, 760px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.video-layout {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    gap: 15px;
    margin-top: 15px;
}

.video-player {
    flex: 2;
    background: #000;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.video-player img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cam-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    pointer-events: none;
}

.cam-rec {
    background: rgba(255, 71, 87, 0.18);
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(5px);
}

.video-logs {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    overflow: hidden;
    min-height: 0;
}

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

.log-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    min-height: 0;
    padding-right: 4px;
}

.log-item {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ai-side-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.ai-panel-block {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
}

.ai-panel-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
}

.ai-panel-big {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.ai-panel-small {
    font-size: 12px;
    color: var(--text-muted);
}

.detection-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detection-chip {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.det-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.empty-detection {
    text-align: center;
    color: var(--text-muted);
    padding: 14px;
    font-size: 13px;
}

.detailed-modal-content {
    background: #fff;
    width: 700px;
    max-width: 95vw;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    overflow-y: auto;
}

.canvas-container-detailed {
    height: 300px;
    position: relative;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #f1f2f6;
    padding: 10px;
}

.graph-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-box span {
    font-size: 11px;
    color: var(--text-muted);
}

.stat-box strong {
    font-size: 20px;
    font-family: var(--font-mono);
}

.audio-modal-content {
    width: min(1120px, 92vw);
    height: auto;
    max-height: 90vh;
    padding: 24px;
    overflow-y: auto;
}

.audio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 16px;
    align-items: stretch;
}

.spectrogram-display {
    height: 320px;
    background: #000;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.spectrogram-display canvas {
    width: 100%;
    height: 100%;
}

.audio-zoom-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.audio-zoom-toolbar label {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audio-score-board {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
}

.score-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.score-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffb300, #ff6f00);
}

.audio-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.audio-logs-section {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

.audio-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.audio-event-item {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.audio-event-item .timestamp {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.audio-event-item .event-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stress-indicator {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.stress-normal {
    background: rgba(46, 204, 113, 0.16);
    color: #2ecc71;
}

.stress-high {
    background: rgba(255, 71, 87, 0.16);
    color: #ff4757;
}

.delete-logs-btn {
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.alert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-modal-content {
    width: 90%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 3px solid #ff4757;
    border-radius: 20px;
    box-shadow: 0 0 0 10px rgba(255, 71, 87, 0.2);
}

.alert-icon {
    font-size: 60px;
    color: #ff4757;
    margin-bottom: 15px;
}

.alert-state-strip {
    margin-top: 14px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 179, 0, 0.12);
    color: #8a5600;
    font-size: 12px;
    font-weight: 700;
}

.alert-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.alert-close-btn,
.alert-view-btn,
.alert-reset-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-zesty);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.alert-close-btn {
    background: #f1f2f6;
    color: #2f3542;
}

.alert-view-btn {
    background: #ffa502;
    color: #fff;
}

.alert-reset-btn {
    background: #ff4757;
    color: #fff;
}

#alert-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3100;
    background: #ff4757;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    max-width: 320px;
}

.reset-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid var(--border-color);
    background: #fff;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.reset-idle .status-dot {
    background: #95a5a6;
}

.reset-ready .status-dot {
    background: #2ecc71;
}

.reset-latched .status-dot {
    background: #ff4757;
}

.reset-working .status-dot {
    background: #f7b731;
}

.reset-idle {
    color: #7f8c8d;
}

.reset-ready {
    color: #27ae60;
}

.reset-latched {
    color: #e74c3c;
}

.reset-working {
    color: #d35400;
}

.organic-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.floating-pot {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 179, 0, 0.15), transparent 70%);
    border-radius: 50%;
    animation: floatPot 7s ease-in-out infinite;
}

.floating-pot.p1 {
    top: 10%;
    left: 8%;
}

.floating-pot.p2 {
    bottom: 8%;
    right: 10%;
    animation-delay: 2s;
}

.dashboard-bee {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(60, 40, 30, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes flyAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate(60px, -40px) rotate(45deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floatPot {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-16px);
    }
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    display: none;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    backdrop-filter: blur(12px);
}

.mobile-nav div {
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    border-radius: 14px;
    cursor: pointer;
    font-size: 18px;
}

.mobile-nav div.active {
    background: rgba(255, 179, 0, 0.14);
    color: var(--accent);
}

@media (max-width: 1100px) {
    .status-summary-grid {
        grid-template-columns: 1fr;
    }

    .audio-layout,
    .video-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .audio-zoom-toolbar,
    .graph-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .dashboard-container {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        max-height: none;
        padding: 20px 16px 90px;
    }

    .mobile-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .desktop-actions {
        display: none !important;
    }

    .cards-grid,
    .status-summary-grid,
    .graph-stats {
        grid-template-columns: 1fr;
    }

    .project-card,
    .pro-card,
    .chart-wrapper {
        padding: 20px;
    }

    .setting-item {
        flex-direction: column;
        align-items: stretch;
    }

    .setting-control {
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .daily-log-card {
        flex-direction: column;
        align-items: stretch;
    }

    .daily-log-actions {
        justify-content: stretch;
    }

    .daily-log-actions button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .alert-actions {
        flex-direction: column;
    }

    .modal-content,
    .video-modal-content,
    .audio-modal-content,
    .detailed-modal-content {
        width: 96vw;
        max-width: 96vw;
        padding: 16px;
    }

    .chart-wrapper {
        height: 300px;
    }

    .brand {
        font-size: 20px;
    }
}