/* Control Vitals Style - Professional Dark Theme */

/* ===== Added: Dynamic width for all screen sizes ===== */
@media (min-width: 1921px) {
    .resus-settings-panel {
        width: 70%;
        max-width: 1600px;
        padding: 3rem;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .resus-settings-panel {
        width: 75%;
        max-width: 1400px;
        padding: 2.8rem;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .resus-settings-panel {
        width: 80%;
        max-width: 1200px;
        padding: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .resus-settings-panel {
        width: 90%;
        max-width: 900px;
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .resus-settings-panel {
        width: 95%;
        padding: 1.5rem;
        border-radius: 12px;
    }
}

/* Keep the top gradient bar */
.resus-settings-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F90618, #2E3192);
}

.resus-settings-title {
    color: #ffffff;
    margin: 0 0 2rem 0;
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
}

.resus-settings-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #F90618, #2E3192);
    border-radius: 1px;
}

.resus-template-selector {
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.resus-select-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #e0e0e0;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    letter-spacing: 0.3px;
}

.resus-template-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #252525;
    color: #ffffff;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.resus-template-select:focus {
    outline: none;
    border-color: #2E3192;
    box-shadow: 0 0 0 2px rgba(46, 49, 146, 0.1);
    background: #2a2a2a;
}

.resus-template-select:hover {
    border-color: #4a4a4a;
}

.resus-current-values {
    margin: 0 0 1.5rem 0; /* Reduced margin */
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    flex: 1; /* Take available space */
}

.resus-values-title {
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 500;
    text-align: center;
    position: relative;
    letter-spacing: 0.3px;
}

.resus-values-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #F90618, #2E3192);
}

.resus-values-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
}

/* TABLE HEADERS - VITALS LEFT, CURRENT/NEW CENTERED */
.resus-table-header th:nth-child(1) {
    text-align: left;
}

.resus-table-header th:nth-child(2),
.resus-table-header th:nth-child(3) {
    text-align: center;
}

.resus-table-header th {
    color: #b0b0b0;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #333;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    letter-spacing: 0.3px;
}

.resus-values-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

.resus-values-table tr:last-child td {
    border-bottom: none;
}

/* TABLE CELLS - VITALS LEFT, VALUES CENTERED */
.resus-values-table td:nth-child(1) {
    color: #e0e0e0;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: left;
}

.resus-values-table td:nth-child(2) {
    color: #E6E6E6;
    text-align: center;
    font-weight: 500;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.resus-values-table td:nth-child(3) {
    color: #E6E6E6;
    text-align: center;
    font-weight: 500;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.resus-controls {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
}

.resus-slider-control {
    margin-bottom: 1.5rem;
    position: relative;
}

.resus-slider-control:last-child {
    margin-bottom: 0;
}

.resus-slider-control label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #e0e0e0;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    letter-spacing: 0.3px;
}

.resus-slider-container {
    width: 100%;
    position: relative;
    margin-bottom: 0.5rem;
}

.resus-slider {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #333, #444);
    outline: none;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resus-slider:hover {
    background: linear-gradient(90deg, #3a3a3a, #4a4a4a);
}

.resus-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #F90618, #2E3192);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.resus-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.resus-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #F90618, #2E3192);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.resus-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.resus-slider-value {
    display: inline-block;
    min-width: 45px;
    text-align: right;
    color: white;
    margin-left: auto;
    margin-right: 0%;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    background: rgba(46, 49, 146, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(46, 49, 146, 0.2);
    letter-spacing: 0.3px;
}

/* Ultra-wide Desktop Support (kept for backward comp) */
@media (min-width: 1921px) {
    .resus-settings-panel {
        width: 70%;
    }
}

/* ================================
   GRID LAYOUT FOR CONTROL PAGE
   ================================ */
.resus-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Left and Right Panels */
.resus-left-panel,
.resus-right-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Right Panel - FIXED HEIGHT FOR BUTTON VISIBILITY */
.resus-right-panel {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #333;
  min-height: 600px; /* Fixed minimum height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space between table and buttons */
}

/* ================================
   RESPONSIVE (Stack on smaller screens)
   ================================ */
@media (max-width: 1024px) {
  .resus-settings-grid {
    grid-template-columns: 1fr;
  }
  
  .resus-right-panel {
    min-height: 500px; /* Adjust for tablets */
  }
}

@media (max-width: 768px) {
  .resus-right-panel {
    min-height: 400px; /* Adjust for mobile */
  }
}

/* Control Vitals Style - Professional Dark Theme */
.resus-settings-panel {
    background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
    color: #e0e0e0;
    padding: 2.5rem;
    border-radius: 16px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    width: 80%;
    margin: 2rem auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
}

/* ===== Added: Dynamic width for all screen sizes ===== */
@media (min-width: 1921px) {
    .resus-settings-panel {
        width: 70%;
        max-width: 1600px;
        padding: 3rem;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .resus-settings-panel {
        width: 75%;
        max-width: 1400px;
        padding: 2.8rem;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .resus-settings-panel {
        width: 80%;
        max-width: 1200px;
        padding: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .resus-settings-panel {
        width: 90%;
        max-width: 900px;
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .resus-settings-panel {
        width: 95%;
        padding: 1.5rem;
        border-radius: 12px;
    }
}

/* Keep the top gradient bar */
.resus-settings-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F90618, #2E3192);
}

/* ============================================
   ACTION BUTTONS - VERTICAL COLUMN LAYOUT
   ============================================ */

/* Container for buttons - inside right panel */
.resus-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto; /* Push to bottom */
  width: 100%;
}

/* Apply consistent button styles */
.resus-apply-btn,
.resus-reset-btn,
.resus-display-btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  letter-spacing: 0.3px;
  width: 100%;
  text-align: center;
  min-height: 48px;
}

/* Consistent shine animation for all buttons */
.resus-apply-btn::before,
.resus-reset-btn::before,
.resus-display-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.resus-apply-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.resus-apply-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* 2. RESET BUTTON (Professional Red) */
.resus-reset-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.resus-reset-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* 3. DISPLAY BUTTON (Vibrant Light Blue/Cyan) */
/* 3. DISPLAY BUTTON (Soft Sky Blue) */
.resus-display-btn {
  /* Using a bright, clear sky blue gradient */
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resus-display-btn:hover {
  /* Deepens into a solid blue for a professional hover effect */
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
}

/* Active state for all buttons */
.resus-apply-btn:active,
.resus-reset-btn:active,
.resus-display-btn:active {
  transform: translateY(0);
}

/* Shine animation on hover for all buttons */
.resus-apply-btn:hover::before,
.resus-reset-btn:hover::before,
.resus-display-btn:hover::before {
  left: 100%;
}

/* Focus states for accessibility */
.resus-apply-btn:focus,
.resus-reset-btn:focus,
.resus-display-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Disabled state (if needed in future) */
.resus-apply-btn:disabled,
.resus-reset-btn:disabled,
.resus-display-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Responsive adjustments for buttons */
@media (max-width: 1024px) {
  .resus-action-buttons {
    margin-top: 1.5rem;
  }
  
  .resus-apply-btn,
  .resus-reset-btn,
  .resus-display-btn {
    padding: 0.875rem 1.25rem;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
  }
}

@media (max-width: 768px) {
  .resus-action-buttons {
    gap: 0.75rem;
  }
  
  .resus-apply-btn,
  .resus-reset-btn,
  .resus-display-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .resus-action-buttons {
    gap: 0.5rem;
  }
  
  .resus-apply-btn,
  .resus-reset-btn,
  .resus-display-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
    min-height: 40px;
  }
}

/* Ultra-wide Desktop Support (kept for backward comp) */
@media (min-width: 1921px) {
    .resus-settings-panel {
        width: 70%;
    }
}

/* ============================================
   COMPACT AED TRAINER SECTION - PROFESSIONAL
   ============================================ */

.compact-aed-section {
    background: linear-gradient(145deg, #1a1a1a, #1e1e1e);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    margin: 1.5rem 0;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.compact-aed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F90618, #2E3192);
}

.compact-aed-title {
    color: #ffffff;
    margin: 0 0 1.25rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

/* Compact AED Container Layout */
.compact-aed-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 1.25rem;
    align-items: start;
}

/* AED Columns */
.aed-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.left-column {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.center-column {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.right-column {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #333;
}

/* Rhythm Status Card */
.rhythm-status-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rhythm-status-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

.status-label {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 500;
}

.rhythm-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.shock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    width: fit-content;
}

.shock-indicator.shockable {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.shock-indicator.non-shockable {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Shockable Guide */
.shockable-guide h5 {
    color: #e0e0e0;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rhythm-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.guide-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #333;
    transform: translateY(-1px);
}

.guide-item.shockable:hover {
    border-color: #F44336;
}

.guide-item.non-shockable:hover {
    border-color: #4CAF50;
}

.guide-rhythm {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.guide-values {
    color: #b0b0b0;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.guide-energy {
    color: #FF9800;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Compact AED Status */
.compact-aed-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #333;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
}

.status-light.analyzing { background: #FF9800; box-shadow: 0 0 8px #FF9800; animation: pulse 1s infinite; }
.status-light.ready { background: #2196F3; box-shadow: 0 0 8px #2196F3; }
.status-light.charging { background: #FF9800; box-shadow: 0 0 8px #FF9800; animation: pulse 0.8s infinite; }
.status-light.charged { background: #FF5722; box-shadow: 0 0 10px #FF5722; animation: pulse 0.5s infinite; }
.status-light.shocking { background: #F44336; box-shadow: 0 0 15px #F44336; animation: shockFlash 0.2s infinite; }
.status-light.post-shock { background: #9C27B0; box-shadow: 0 0 8px #9C27B0; animation: fadePulse 1s infinite; }

.status-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.status-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.aed-readings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reading {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.reading-label {
    color: #b0b0b0;
    font-size: 0.75rem;
}

.reading-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Compact AED Controls */
.compact-aed-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.aed-control-btn {
    padding: 0.6rem 0.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    min-height: 38px;
}

.aed-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.aed-control-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.analyze-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.charge-btn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.shock-btn {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
}

.reset-btn {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    color: white;
}

.aed-control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Compact Energy Control */
.compact-energy-control {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
}

.energy-slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.energy-slider-container label {
    color: #b0b0b0;
    font-size: 0.85rem;
    min-width: 90px;
}

#compactEnergySlider {
    flex: 1;
    height: 5px;
    background: linear-gradient(90deg, #333, #444);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

#compactEnergySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #FF5722, #F90618);
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.energy-value {
    color: #FF5722;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 55px;
    text-align: right;
}

/* Shock Comparison */
.shock-comparison h5 {
    color: #e0e0e0;
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.comparison-table th {
    background: rgba(46, 49, 146, 0.1);
    color: #b0b0b0;
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid #333;
}

.comparison-table td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    text-align: left;
    color: #e0e0e0;
    font-weight: 500;
}

.before-value {
    color: #b0b0b0;
    font-weight: 500;
}

.after-value {
    color: #ffffff;
    font-weight: 600;
}

.change-value {
    font-weight: 600;
}

.change-value.positive {
    color: #4CAF50;
}

.change-value.negative {
    color: #F44336;
}

.change-value.neutral {
    color: #FF9800;
}

/* Last Shock Info */
.last-shock-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
    margin-top: 0.75rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
    text-align: center;
}

.info-label {
    color: #b0b0b0;
    font-size: 0.7rem;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Training Notice */
.training-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    margin-top: 1rem;
    color: #FF9800;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shockFlash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

@keyframes fadePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive Design for Compact AED */
@media (max-width: 1200px) {
    .compact-aed-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .aed-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .compact-aed-section {
        padding: 1.25rem;
    }
    
    .compact-aed-title {
        font-size: 1.1rem;
    }
    
    .compact-aed-controls {
        grid-template-columns: 1fr;
    }
    
    .energy-slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .energy-slider-container label {
        min-width: auto;
    }
    
    .comparison-table {
        font-size: 0.75rem;
    }
    
    .last-shock-info {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .compact-aed-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .compact-aed-title {
        font-size: 1rem;
    }
    
    .aed-control-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .training-notice {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}

/* Remove old AED section styles (keep only new compact styles) */
.aed-control-section,
.aed-title,
.aed-controls-container,
.aed-status-display,
.aed-status-card,
.status-indicator,
.status-dot,
.status-details,
.aed-energy-control,
.energy-header,
.energy-label,
.energy-value-display,
.energy-unit,
.energy-slider,
.energy-presets,
.energy-preset-btn,
.aed-action-buttons,
.aed-btn,
.aed-log-section,
.log-title,
.log-container,
.shock-log,
.log-entry,
.log-time,
.log-energy,
.log-impedance,
.log-status,
.no-entries,
.aed-safety-warning,
.warning-icon,
.warning-text,
.aed-message,
.message-content,
.message-close {
    display: none !important;
}

/* ==========================================================
   TABLE VALUES CENTERED FIX
   ========================================================== */

/* Headers: Vitals left, Current/New centered */
.resus-table-header th:nth-child(1) {
    text-align: left;
}

.resus-table-header th:nth-child(2),
.resus-table-header th:nth-child(3) {
    text-align: center;
}

/* Cells: Current and New values centered */
.resus-values-table td:nth-child(2),
.resus-values-table td:nth-child(3) {
    text-align: center;
}

/* Remove right padding from centered cells */
.resus-values-table td:nth-child(2) {
    padding-right: 0;
}

/* Responsive: On mobile, keep everything left-aligned for better readability */
@media (max-width: 768px) {
    .resus-table-header th:nth-child(1),
    .resus-table-header th:nth-child(2),
    .resus-table-header th:nth-child(3) {
        text-align: left;
    }
    
    .resus-values-table td:nth-child(1),
    .resus-values-table td:nth-child(2),
    .resus-values-table td:nth-child(3) {
        text-align: left;
    }
}
/* ==========================================================
   LAYOUT BALANCING - INLINE DROPDOWNS
   ========================================================== */

.resus-inline-group {
    display: flex;
    gap: 1.5rem; /* Space between side-by-side items */
    margin-bottom: 0.25rem; /* Match existing margin-bottom of selectors */
}

/* Ensure half-width items take up equal space */
.resus-template-selector.half-width {
    flex: 1;
    min-width: 0; /* Prevent flexbox overflow issues */
}

/* Responsive: Stack them back on mobile */
@media (max-width: 768px) {
    .resus-inline-group {
        flex-direction: column;
        gap: 0;
    }
}

