body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
}

.container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

#status {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #555;
    min-height: 25px;
}

.device-selector {
    margin-bottom: 20px;
    text-align: left;
}

.device-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.device-selector select {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}

.device-selector select:focus {
    outline: none;
    border-color: #28a745;
}

.controls button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 10px;
}

#startBtn {
    background-color: #28a745;
    color: white;
}

#startBtn:disabled {
    background-color: #a3d8b0;
    cursor: not-allowed;
}

#stopBtn {
    background-color: #dc3545;
    color: white;
}

#stopBtn:disabled {
    background-color: #f0a1a8;
    cursor: not-allowed;
}

#clearBtn {
    background-color: #ffc107;
    color: #333;
}

#clearBtn:hover {
    background-color: #e0a800;
}


/* ---- Overrides dark theme (IC) ---- */
:root {
  color-scheme: light dark;
}

body {
  background-color: #11151c;
}

.container {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

h1 {
  color: #e2e8f0;
  margin: 0 0 8px 0;
}

#status {
  color: #9fb3c8;
}

.device-selector label { color: #cbd5e1; }
.device-selector select {
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,0.24);
  border-radius: 10px;
}
.device-selector select:focus {
  border-color: #2ec4b6;
  box-shadow: 0 0 0 3px rgba(46,196,182,0.18);
}

.controls button {
  border: 1px solid transparent;
  border-radius: 10px;
}
#startBtn {
  background: rgba(46,196,182,0.16);
  color: #56e6d6;
  border-color: rgba(86,230,214,0.35);
}
#startBtn:hover { background: rgba(46,196,182,0.24); }
#startBtn:disabled { opacity: .5; cursor: not-allowed; }

#stopBtn {
  background: rgba(244, 63, 94, 0.18);
  color: #ff8899;
  border-color: rgba(255, 136, 153, 0.35);
}
#stopBtn:hover { background: rgba(244, 63, 94, 0.26); }
#stopBtn:disabled { opacity: .5; cursor: not-allowed; }

#clearBtn {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
  border-color: rgba(253, 230, 138, 0.35);
}
#clearBtn:hover { background: rgba(234, 179, 8, 0.24); }

/* VU meter */
#vumeter-container label { color: #cbd5e1; }
#vumeter { appearance: none; width: 100%; height: 16px; }
#vumeter::-webkit-progress-bar { background-color: rgba(15, 23, 42, 0.5); border-radius: 999px; }
#vumeter::-webkit-progress-value { background: linear-gradient(90deg, #2ec4b6, #56e6d6); border-radius: 999px; }
#vumeter::-moz-progress-bar { background: linear-gradient(90deg, #2ec4b6, #56e6d6); border-radius: 999px; }

/* Logo */
.brand-logo {
  height: 90px; /* grande taille souhaitée */
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .brand-logo { height: 70px; }
}
