* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.5) 0%, rgba(139, 69, 19, 0.5) 100%);
    border-radius: 10px;
    border: 2px solid rgba(218, 165, 32, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.7) 0%, rgba(139, 69, 19, 0.7) 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 134, 11, 0.5) rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #1a1410;
    color: #d4c5a9;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Animated background - whiskey barrel wood texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 69, 19, 0.02) 2px, rgba(139, 69, 19, 0.02) 4px);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.9) 0%, rgba(40, 30, 20, 0.9) 100%);
    border-radius: 5px;
    border: 2px solid #8b5a2b;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(218, 165, 32, 0.2);
}

h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #daa520 0%, #b8860b 50%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    color: #b8956f;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.6) 0%, rgba(26, 20, 16, 0.6) 100%);
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #6b4423;
    text-align: center;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(218, 165, 32, 0.1);
}

.stat-card:hover {
    border-color: #b8860b;
    box-shadow: 
        0 5px 20px rgba(184, 134, 11, 0.3),
        inset 0 1px 0 rgba(218, 165, 32, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.9em;
    color: #9d8560;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-dropdown {
    position: relative;
}

.dropdown-header {
    padding: 12px 24px;
    border: 2px solid rgba(184, 134, 11, 0.4);
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8) 0%, rgba(26, 20, 16, 0.8) 100%);
    color: #daa520;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
}

.dropdown-header:hover {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.95) 0%, rgba(26, 20, 16, 0.95) 100%);
    border-color: #b8860b;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.dashboard-btn.active {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #fff;
    border-color: #daa520;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 5px);
    left: 0;
    background: rgba(26, 20, 16, 0.98);
    border: 2px solid rgba(184, 134, 11, 0.4);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    padding-top: 10px;
}

.tab-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.dropdown-content .tab {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-bottom: 1px solid rgba(107, 68, 35, 0.3);
    background: transparent;
    color: #9d8560;
    cursor: pointer;
    border-radius: 0;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}

.dropdown-content .tab:last-child {
    border-bottom: none;
}

.dropdown-content .tab:hover {
    background: rgba(184, 134, 11, 0.15);
    color: #daa520;
    transform: none;
    padding-left: 25px;
}

.dropdown-content .tab.active {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.3) 0%, rgba(139, 105, 20, 0.1) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.content-panel {
    display: none;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.4) 0%, rgba(26, 20, 16, 0.4) 100%);
    padding: 30px;
    border-radius: 5px;
    border: 2px solid #6b4423;
    min-height: 400px;
    box-shadow: inset 0 1px 0 rgba(218, 165, 32, 0.1);
}

.content-panel.active {
    display: block;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dashboard-section {
    background: rgba(40, 30, 20, 0.5);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #6b4423;
}

.dashboard-section-title {
    color: #daa520;
    font-size: 1em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(184, 134, 11, 0.4);
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-list, .production-list, .activity-list {
    max-height: 250px;
    overflow-y: auto;
}

.alert-item {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
}

.alert-item.critical {
    background: rgba(244, 67, 54, 0.1);
    border-left-color: #f44336;
}

.production-item, .activity-item {
    background: rgba(40, 30, 20, 0.5);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid #b8860b;
}

.item-title {
    font-weight: 600;
    color: #daa520;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.item-detail {
    font-size: 0.85em;
    color: #9d8560;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    color: #daa520;
    font-size: 1.8em;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: white;
    border: 2px solid #8b5a2b;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(139, 105, 20, 0.3);
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    box-shadow: 0 5px 20px rgba(184, 134, 11, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
}

.btn-sm {
    padding: 6px 12px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: white;
    border: 1px solid #8b5a2b;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    margin-right: 5px;
    transition: all 0.3s;
}

.btn-sm:hover {
    box-shadow: 0 3px 10px rgba(184, 134, 11, 0.4);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #8b2e2e 0%, #6b1e1e 100%);
    border-color: #5a1414;
}

.btn-danger:hover {
    box-shadow: 0 3px 10px rgba(139, 46, 46, 0.4);
    background: linear-gradient(135deg, #a03636 0%, #8b2e2e 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4a6b2e 0%, #3a5222 100%);
    border-color: #2e4018;
}

.btn-success:hover {
    box-shadow: 0 3px 10px rgba(74, 107, 46, 0.4);
    background: linear-gradient(135deg, #5a7b3e 0%, #4a6b2e 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #8b6914 0%, #6b4f10 100%);
    border-color: #5a3f0c;
}

.btn-warning:hover {
    box-shadow: 0 3px 10px rgba(139, 105, 20, 0.4);
    background: linear-gradient(135deg, #9b7924 0%, #8b6914 100%);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background: rgba(184, 134, 11, 0.15);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #daa520;
    border-bottom: 2px solid rgba(184, 134, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(107, 68, 35, 0.2);
    color: #d4c5a9;
}

tr:hover {
    background: rgba(184, 134, 11, 0.08);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(74, 107, 46, 0.2);
    border-color: #5a7b3e;
    color: #7a9b5e;
}

.badge-warning {
    background: rgba(139, 105, 20, 0.2);
    border-color: #8b6914;
    color: #b8860b;
}

.badge-error {
    background: rgba(139, 46, 46, 0.2);
    border-color: #8b2e2e;
    color: #a03636;
}

.badge-info {
    background: rgba(184, 134, 11, 0.2);
    border-color: #b8860b;
    color: #daa520;
}

.badge-purple {
    background: rgba(107, 68, 35, 0.2);
    border-color: #6b4423;
    color: #8b5a2b;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #9d8560;
    font-size: 1.1em;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #9d8560;
    font-size: 1.1em;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 40px;
    color: #a03636;
    font-size: 1.1em;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.98) 0%, rgba(40, 30, 20, 0.98) 100%);
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(218, 165, 32, 0.2);
    border: 2px solid #8b5a2b;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(184, 134, 11, 0.3);
}

.modal-title {
    font-size: 1.5em;
    color: #daa520;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #9d8560;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #daa520;
}

form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #9d8560;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #6b4423;
    background: rgba(26, 20, 16, 0.6);
    border-radius: 3px;
    font-size: 1em;
    font-family: 'Georgia', serif;
    color: #d4c5a9;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.2);
    background: rgba(184, 134, 11, 0.05);
}

select option {
    background: #1a1410;
    color: #d4c5a9;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(107, 68, 35, 0.3);
}

.calculation-box {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.8) 0%, rgba(40, 30, 20, 0.8) 100%);
    border: 2px solid #b8860b;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 
        0 0 20px rgba(184, 134, 11, 0.2),
        inset 0 1px 0 rgba(218, 165, 32, 0.1);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(107, 68, 35, 0.2);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.highlight {
    background: rgba(184, 134, 11, 0.15);
    margin: 0 -10px;
    padding: 10px;
    border-radius: 5px;
    border-bottom: none;
}

.calc-row span {
    color: #9d8560;
}

.calc-row strong {
    color: #daa520;
    font-size: 1.1em;
}

.large-modal {
    max-width: 700px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 8px;
    }
}

/* ============================================
   TEMPERATURE MONITOR STYLES
   ============================================ */

/* Temperature Display */
.temp-display {
    margin-bottom: 30px;
}

.temp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.temp-grid.combined {
    grid-template-columns: 1fr;
}

.temp-card {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.7) 0%, rgba(26, 20, 16, 0.7) 100%);
    border-radius: 5px;
    padding: 25px;
    border: 2px solid #6b4423;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: inset 0 1px 0 rgba(218, 165, 32, 0.1);
}

.temp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b8860b, #8b6914);
    opacity: 0.7;
}

.temp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #b8860b;
}

.temp-card.warning::before {
    background: linear-gradient(90deg, #8b6914, #6b4f10);
}

.temp-card.warning {
    border-color: rgba(139, 105, 20, 0.6);
    box-shadow: 0 0 25px rgba(139, 105, 20, 0.3);
}

.temp-card.danger::before {
    background: linear-gradient(90deg, #8b2e2e, #a03636);
    animation: pulse-glow 1s infinite;
}

.temp-card.danger {
    border-color: rgba(139, 46, 46, 0.7);
    box-shadow: 0 0 30px rgba(139, 46, 46, 0.4);
}

.temp-card.disconnected {
    opacity: 0.4;
    border-color: rgba(107, 68, 35, 0.2);
}

.temp-card.flash-alert {
    animation: flash-alert 1s infinite;
}

.temp-card.flash-warning {
    animation: flash-warning 1s infinite;
}

.temp-card.flash-danger {
    animation: flash-danger 0.8s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes flash-alert {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(255, 153, 0, 0.3);
        border-color: rgba(255, 153, 0, 0.5);
    }
    50% { 
        box-shadow: 0 5px 30px rgba(255, 153, 0, 0.7);
        border-color: rgba(255, 153, 0, 0.9);
    }
}

@keyframes flash-warning {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(255, 153, 0, 0.4);
        border-color: rgba(255, 153, 0, 0.6);
    }
    50% { 
        box-shadow: 0 5px 35px rgba(255, 153, 0, 0.8);
        border-color: rgba(255, 153, 0, 1);
    }
}

@keyframes flash-danger {
    0%, 100% { 
        box-shadow: 0 5px 20px rgba(255, 68, 68, 0.5);
        border-color: rgba(255, 68, 68, 0.7);
    }
    50% { 
        box-shadow: 0 5px 40px rgba(255, 68, 68, 0.9);
        border-color: rgba(255, 68, 68, 1);
    }
}

.temp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.temp-label {
    font-size: 1em;
    color: #9d8560;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: 'Georgia', serif;
}

.temp-settings-btn {
    background: none;
    border: 1px solid #6b4423;
    color: #9d8560;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
}

.temp-settings-btn:hover {
    color: #daa520;
    border-color: #b8860b;
}

.sensor-indicator {
    font-size: 10px;
    color: #9d8560;
    transition: color 0.3s;
}

.sensor-indicator.connected {
    color: #7a9b5e;
}

.sensor-indicator.disconnected {
    color: #a03636;
    animation: pulse 2s infinite;
}

.temp-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.temp-value {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.temp-unit {
    font-size: 0.4em;
    color: #9d8560;
    margin-left: 5px;
}

.temp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    padding-top: 15px;
    border-top: 1px solid rgba(107, 68, 35, 0.3);
}

.temp-range {
    color: #9d8560;
}

.temp-range span {
    color: #daa520;
    font-weight: bold;
}

.temp-stats {
    display: flex;
    gap: 8px;
    font-size: 0.65em;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(107, 68, 35, 0.2);
    align-items: center;
}

.stat-item {
    flex: 0 0 auto;
    text-align: center;
    min-width: 50px;
}

.stat-label {
    font-size: 0.85em;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1em;
    font-weight: 600;
}

.stat-value.high {
    color: #a03636;
}

.stat-value.low {
    color: #7a9b5e;
}

.temp-stats .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Chart Container */
.chart-container {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.4) 0%, rgba(26, 20, 16, 0.4) 100%);
    border-radius: 5px;
    padding: 25px;
    border: 2px solid #6b4423;
    margin-bottom: 20px;
}

.chart-container h2 {
    margin-bottom: 20px;
    color: #daa520;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

canvas {
    max-height: 400px;
}

/* Phase Selector */
.phase-selector {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.6) 0%, rgba(26, 20, 16, 0.6) 100%);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #6b4423;
}

.phase-selector h3 {
    color: #daa520;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phase-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.phase-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: rgba(40, 30, 20, 0.6);
    border: 2px solid #6b4423;
    border-radius: 3px;
    color: #9d8560;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phase-btn:hover {
    border-color: #b8860b;
}

.phase-btn.active {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #fff;
    border-color: #daa520;
    box-shadow: 0 5px 20px rgba(184, 134, 11, 0.3);
    font-weight: bold;
}

.phase-info {
    margin-top: 15px;
    padding: 15px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 3px;
    border-left: 4px solid #b8860b;
    color: #d4c5a9;
}

.temp-status {
    font-weight: 600;
}

/* Combined Temps View */
.combined-temps {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.combined-temp-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.combined-temp-item .temp-label {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.combined-temp-item .temp-value {
    font-size: 3em;
}

/* Temperature Monitor Tab Navigation */
.tab-btn {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 2px solid #6b4423;
    color: #9d8560;
    padding: 12px 24px;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b8860b, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(60, 45, 30, 0.9) 0%, rgba(40, 30, 20, 0.9) 100%);
    border-color: #b8860b;
    color: #daa520;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn.active {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    border-color: #daa520;
    color: #1a1410;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.5),
                inset 0 1px 0 rgba(218, 165, 32, 0.3);
}

.tab-btn.active::before {
    background: linear-gradient(90deg, transparent, #daa520, transparent);
    opacity: 1;
}

/* Temp Monitor Control Buttons - Override default .btn styles */
#stillmonitor .btn {
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#stillmonitor .btn-primary {
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    border: 2px solid #daa520;
    color: #1a1410;
}

#stillmonitor .btn-primary:hover {
    background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

#stillmonitor .btn-danger {
    background: linear-gradient(135deg, #a03636 0%, #8b2e2e 100%);
    border: 2px solid #c44545;
    color: #fff;
}

#stillmonitor .btn-danger:hover {
    background: linear-gradient(135deg, #c44545 0%, #a03636 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(160, 54, 54, 0.4);
}

#stillmonitor .btn-secondary {
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.8) 0%, rgba(26, 20, 16, 0.8) 100%);
    border: 2px solid #6b4423;
    color: #9d8560;
}

#stillmonitor .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(60, 45, 30, 0.9) 0%, rgba(40, 30, 20, 0.9) 100%);
    border-color: #b8860b;
    color: #daa520;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
}

#stillmonitor .btn-secondary.active {
    background: linear-gradient(135deg, #8b6914 0%, #6b4f10 100%);
    border-color: #b8860b;
    color: #daa520;
    font-weight: bold;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Recording Status Text */
#recordingStatus {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#recordingDuration {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Header Sensor Status Indicators */
.header-sensor-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: help;
    transition: all 0.3s;
}

.header-sensor-status:hover {
    transform: scale(1.1);
}

.header-sensor-status.connected span {
    color: #7a9b5e !important;
    animation: pulse-green 2s infinite;
}

.header-sensor-status.disconnected span {
    color: #a03636 !important;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
