/* ============================================
   AIRWAVE AUDIO PLAYER MATRIX - THEME SYSTEM
   Three Complete Themes: Dark, Light, Neutral
   ============================================ */

/* === BASE CARD STYLES === */
.awmx-card {
    border-radius: 20px;
    padding: 24px;
    margin: 16px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.awmx-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.15);
}

.awmx-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid;
}

.awmx-card__header h3 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.3;
}

/* === LAYOUT UTILITIES === */
.awmx-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.awmx-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === BUTTONS === */
.awmx-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.awmx-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.awmx-btn:active {
    transform: translateY(0);
}

.awmx-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* === INPUTS & SELECTS === */
.awmx-input,
.awmx-card input[type="text"],
.awmx-card input[type="url"],
.awmx-card input[type="password"],
.awmx-card input[type="range"],
.awmx-card select,
.awmx-join-input,
.awmx-stream-select,
.awmx-vol {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid;
    font-family: inherit;
}

.awmx-card input[type="range"] {
    padding: 0;
    cursor: pointer;
}

.awmx-card input[type="text"]:focus,
.awmx-card input[type="url"]:focus,
.awmx-card input[type="password"]:focus,
.awmx-input:focus,
.awmx-join-input:focus,
.awmx-stream-select:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.awmx-card label {
    font-weight: 600;
    font-size: 14px;
}

/* === RADIO PLAYER STYLES === */
.awmx-radio__body {
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.awmx-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.awmx-meta-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
}

.awmx-meta-inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.awmx-meta-inline > div {
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
}

/* Now Playing Marquee */
.awmx-now-playing-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.awmx-title-marquee {
    flex: 1 1 0% !important;
    overflow: hidden !important;
    position: relative !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.awmx-title-text {
    display: inline-block !important;
    white-space: nowrap !important;
    will-change: transform !important;
}

/* Scrolling animation - only applied when text overflows */
.awmx-title-marquee.scrolling .awmx-title-text {
    animation: awmx-scroll-marquee-loop var(--scroll-duration, 15s) linear infinite !important;
    animation-delay: 0s !important;
}

/* Pause animation on hover for better UX */
.awmx-title-marquee.scrolling:hover .awmx-title-text {
    animation-play-state: paused !important;
}

/* Continuous loop marquee - scrolls from left to right */
@keyframes awmx-scroll-marquee-loop {
    0% {
        transform: translateX(0);
    }
    90% {
        transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
    }
    90.01%, 100% {
        transform: translateX(0);
    }
}

/* Visualizer Canvas Container */
.awmx-viz-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 10px 0 !important;
    width: 100% !important;
}

/* Visualizer Canvas */
.awmx-viz-canvas {
    display: block !important;
    width: 100% !important;
    max-width: 400px !important;
    height: 120px !important;
    margin: 0 auto !important;
    background: #1a1a1a !important;
    border-radius: 4px !important;
}

#awmx_art {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    display: inline-block !important;
    visibility: visible !important;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid;
}

.awmx-hint {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: 8px;
}

#awmx_history {
    padding: 12px;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.awmx-warn {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid;
    font-size: 14px;
    font-weight: 500;
}

/* === MATRIX CHAT STYLES === */
.awmx-matrix__root {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.awmx-matrix__login {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
}

.awmx-matrix__app {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    min-height: 500px;
}

.awmx-matrix__sidebar {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    overflow-y: auto;
    max-height: 600px;
}

.awmx-matrix__timeline {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    min-height: 500px;
}

.awmx-room__header {
    padding: 12px;
    border-bottom: 2px solid;
    margin-bottom: 12px;
}

.awmx-room__header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.awmx-room__list {
    margin-bottom: 16px;
}

.awmx-room__name {
    font-weight: 600;
    font-size: 1.1rem;
}

.awmx-events {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    min-height: 300px;
}

.awmx-composer {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 2px solid;
}

.awmx-composer .awmx-input {
    flex: 1;
}

/* === ALBUM ART BACKGROUND === */
.awmx-card.awmx-has-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.awmx-card.awmx-has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 0;
    border-radius: 20px;
}

.awmx-card.awmx-has-bg .awmx-card__header,
.awmx-card.awmx-has-bg .awmx-radio__body,
.awmx-card.awmx-has-bg .awmx-controls,
.awmx-card.awmx-has-bg .awmx-meta-grid {
    position: relative;
    z-index: 1;
}

/* ============================================
   DARK THEME
   ============================================ */
.awmx-card.awmx-theme-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.awmx-card.awmx-theme-dark:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
}

.awmx-card.awmx-theme-dark .awmx-card__header {
    border-color: rgba(148, 163, 184, 0.3);
    color: #f1f5f9;
}

.awmx-card.awmx-theme-dark .awmx-card__header h3 {
    color: #ffffff;
}

.awmx-card.awmx-theme-dark .awmx-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.awmx-card.awmx-theme-dark .awmx-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.awmx-card.awmx-theme-dark .awmx-input,
.awmx-card.awmx-theme-dark input[type="text"],
.awmx-card.awmx-theme-dark input[type="url"],
.awmx-card.awmx-theme-dark input[type="password"],
.awmx-card.awmx-theme-dark .awmx-join-input,
.awmx-card.awmx-theme-dark .awmx-stream-select {
    background: #0f172a;
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
}

.awmx-card.awmx-theme-dark .awmx-input:focus,
.awmx-card.awmx-theme-dark input[type="text"]:focus,
.awmx-card.awmx-theme-dark input[type="url"]:focus,
.awmx-card.awmx-theme-dark input[type="password"]:focus,
.awmx-card.awmx-theme-dark .awmx-join-input:focus,
.awmx-card.awmx-theme-dark .awmx-stream-select:focus {
    background: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.awmx-card.awmx-theme-dark .awmx-card label {
    color: #cbd5e1;
}

.awmx-card.awmx-theme-dark .awmx-radio__body,
.awmx-card.awmx-theme-dark .awmx-matrix__sidebar,
.awmx-card.awmx-theme-dark .awmx-matrix__timeline,
.awmx-card.awmx-theme-dark .awmx-matrix__login {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

.awmx-card.awmx-theme-dark .awmx-controls {
    background: rgba(15, 23, 42, 0.8);
}

.awmx-card.awmx-theme-dark .awmx-meta-grid {
    background: rgba(15, 23, 42, 0.6);
}

.awmx-card.awmx-theme-dark .awmx-room__header {
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

.awmx-card.awmx-theme-dark .awmx-composer {
    border-color: rgba(148, 163, 184, 0.2);
}

.awmx-card.awmx-theme-dark .awmx-events {
    background: rgba(15, 23, 42, 0.4);
}

.awmx-card.awmx-theme-dark .awmx-warn {
    background: rgba(154, 52, 18, 0.3);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
}

.awmx-card.awmx-theme-dark .awmx-hint {
    color: #94a3b8;
}

.awmx-card.awmx-theme-dark #awmx_history {
    background: rgba(15, 23, 42, 0.4);
}

.awmx-card.awmx-theme-dark #awmx_art {
    border-color: rgba(148, 163, 184, 0.3);
}

/* === DARK THEME - SHORTCODE SPECIFIC === */
.awmx-card.awmx-theme-dark .airwave-shortcode-title {
    color: #ffffff;
}

.awmx-card.awmx-theme-dark .airwave-player-controls,
.awmx-card.awmx-theme-dark .airwave-chat-container,
.awmx-card.awmx-theme-dark .airwave-matrix-login {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

/* ============================================
   LIGHT THEME
   ============================================ */
.awmx-card.awmx-theme-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 24px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.awmx-card.awmx-theme-light:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12), 0 16px 32px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(203, 213, 225, 1);
}

.awmx-card.awmx-theme-light .awmx-card__header {
    border-color: rgba(226, 232, 240, 0.8);
    color: #0f172a;
}

.awmx-card.awmx-theme-light .awmx-card__header h3 {
    color: #0f172a;
}

.awmx-card.awmx-theme-light .awmx-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.awmx-card.awmx-theme-light .awmx-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.awmx-card.awmx-theme-light .awmx-input,
.awmx-card.awmx-theme-light input[type="text"],
.awmx-card.awmx-theme-light input[type="url"],
.awmx-card.awmx-theme-light input[type="password"],
.awmx-card.awmx-theme-light .awmx-join-input,
.awmx-card.awmx-theme-light .awmx-stream-select {
  background: #ffffff;
    color: #1e293b;
    border-color: rgba(226, 232, 240, 0.8);
}

.awmx-card.awmx-theme-light .awmx-input:focus,
.awmx-card.awmx-theme-light input[type="text"]:focus,
.awmx-card.awmx-theme-light input[type="url"]:focus,
.awmx-card.awmx-theme-light input[type="password"]:focus,
.awmx-card.awmx-theme-light .awmx-join-input:focus,
.awmx-card.awmx-theme-light .awmx-stream-select:focus {
    background: #f8fafc;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.awmx-card.awmx-theme-light .awmx-card label {
    color: #475569;
}

.awmx-card.awmx-theme-light .awmx-radio__body,
.awmx-card.awmx-theme-light .awmx-matrix__sidebar,
.awmx-card.awmx-theme-light .awmx-matrix__timeline,
.awmx-card.awmx-theme-light .awmx-matrix__login {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(226, 232, 240, 0.6);
}

.awmx-card.awmx-theme-light .awmx-controls {
    background: rgba(241, 245, 249, 0.8);
}

.awmx-card.awmx-theme-light .awmx-meta-grid {
    background: rgba(241, 245, 249, 0.6);
}

.awmx-card.awmx-theme-light .awmx-room__header {
    border-color: rgba(226, 232, 240, 0.6);
    color: #0f172a;
}

.awmx-card.awmx-theme-light .awmx-composer {
    border-color: rgba(226, 232, 240, 0.6);
}

.awmx-card.awmx-theme-light .awmx-events {
    background: rgba(248, 250, 252, 0.6);
}

.awmx-card.awmx-theme-light .awmx-warn {
    background: rgba(254, 243, 199, 0.8);
    color: #92400e;
    border-color: rgba(252, 211, 77, 0.6);
}

.awmx-card.awmx-theme-light .awmx-hint {
    color: #64748b;
}

.awmx-card.awmx-theme-light #awmx_history {
    background: rgba(241, 245, 249, 0.6);
}

.awmx-card.awmx-theme-light #awmx_art {
    border-color: rgba(226, 232, 240, 0.6);
}

/* === LIGHT THEME - SHORTCODE SPECIFIC === */
.awmx-card.awmx-theme-light .airwave-shortcode-title {
    color: #0f172a;
}

.awmx-card.awmx-theme-light .airwave-player-controls,
.awmx-card.awmx-theme-light .airwave-chat-container,
.awmx-card.awmx-theme-light .airwave-matrix-login {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(226, 232, 240, 0.6);
}

/* ============================================
   MODERN NEUTRAL THEME
   ============================================ */
.awmx-card.awmx-theme-neutral {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    border-color: rgba(203, 213, 225, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.awmx-card.awmx-theme-neutral:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(148, 163, 184, 1);
}

.awmx-card.awmx-theme-neutral .awmx-card__header {
    border-color: rgba(203, 213, 225, 0.8);
    color: #1e293b;
}

.awmx-card.awmx-theme-neutral .awmx-card__header h3 {
    color: #0f172a;
}

.awmx-card.awmx-theme-neutral .awmx-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #ffffff;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.awmx-card.awmx-theme-neutral .awmx-btn:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.awmx-card.awmx-theme-neutral .awmx-input,
.awmx-card.awmx-theme-neutral input[type="text"],
.awmx-card.awmx-theme-neutral input[type="url"],
.awmx-card.awmx-theme-neutral input[type="password"],
.awmx-card.awmx-theme-neutral .awmx-join-input,
.awmx-card.awmx-theme-neutral .awmx-stream-select {
  background: #ffffff;
    color: #334155;
    border-color: rgba(203, 213, 225, 0.8);
}

.awmx-card.awmx-theme-neutral .awmx-input:focus,
.awmx-card.awmx-theme-neutral input[type="text"]:focus,
.awmx-card.awmx-theme-neutral input[type="url"]:focus,
.awmx-card.awmx-theme-neutral input[type="password"]:focus,
.awmx-card.awmx-theme-neutral .awmx-join-input:focus,
.awmx-card.awmx-theme-neutral .awmx-stream-select:focus {
    background: #f8fafc;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.awmx-card.awmx-theme-neutral .awmx-card label {
    color: #475569;
}

.awmx-card.awmx-theme-neutral .awmx-radio__body,
.awmx-card.awmx-theme-neutral .awmx-matrix__sidebar,
.awmx-card.awmx-theme-neutral .awmx-matrix__timeline,
.awmx-card.awmx-theme-neutral .awmx-matrix__login {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(203, 213, 225, 0.6);
}

.awmx-card.awmx-theme-neutral .awmx-controls {
    background: rgba(226, 232, 240, 0.6);
}

.awmx-card.awmx-theme-neutral .awmx-meta-grid {
    background: rgba(226, 232, 240, 0.4);
}

.awmx-card.awmx-theme-neutral .awmx-room__header {
    border-color: rgba(203, 213, 225, 0.6);
    color: #1e293b;
}

.awmx-card.awmx-theme-neutral .awmx-composer {
    border-color: rgba(203, 213, 225, 0.6);
}

.awmx-card.awmx-theme-neutral .awmx-events {
    background: rgba(241, 245, 249, 0.4);
}

.awmx-card.awmx-theme-neutral .awmx-warn {
    background: rgba(254, 249, 195, 0.8);
    color: #854d0e;
    border-color: rgba(253, 224, 71, 0.6);
}

.awmx-card.awmx-theme-neutral .awmx-hint {
    color: #64748b;
}

.awmx-card.awmx-theme-neutral #awmx_history {
    background: rgba(226, 232, 240, 0.4);
}

.awmx-card.awmx-theme-neutral #awmx_art {
    border-color: rgba(203, 213, 225, 0.6);
}

/* === NEUTRAL THEME - SHORTCODE SPECIFIC === */
.awmx-card.awmx-theme-neutral .airwave-shortcode-title {
    color: #0f172a;
}

.awmx-card.awmx-theme-neutral .airwave-player-controls,
.awmx-card.awmx-theme-neutral .airwave-chat-container,
.awmx-card.awmx-theme-neutral .airwave-matrix-login {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(203, 213, 225, 0.6);
}

/* ============================================
   ADDITIONAL SHORTCODE STYLES
   ============================================ */

/* Song History, Current Song, News Ticker */
.airwave-song-history-shortcode,
.airwave-current-song-shortcode,
.airwave-news-ticker-shortcode,
.airwave-visualizer-shortcode,
.airwave-song-history-list-shortcode,
.airwave-song-ticker-shortcode,
.airwave-combined-shortcode {
    padding: 0;
}

.airwave-shortcode-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid;
}

.airwave-player-controls {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 16px;
}

.airwave-current-song,
.airwave-song-history,
.airwave-visualizer {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 16px;
}

.airwave-news-ticker {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid;
    overflow: hidden;
}

.airwave-tabs {
    border-radius: 12px;
  overflow: hidden;
}

.airwave-tab-nav {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid;
}

.airwave-tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.airwave-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.airwave-tab-content {
    padding: 16px;
}

.airwave-tab-panel {
    display: none;
}

.airwave-tab-panel.active {
    display: block;
}

/* Chat Room Shortcode */
.airwave-chat-room-shortcode {
    padding: 0;
}

.airwave-matrix-login {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 16px;
}

.airwave-login-form {
    margin-bottom: 20px;
}

.airwave-login-field {
    margin-bottom: 16px;
}

.airwave-login-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.airwave-login-help {
    padding: 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    font-size: 13px;
}

.airwave-messages-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    margin-bottom: 12px;
}

.airwave-message-input {
    display: flex;
    gap: 12px;
}

/* ============================================
   WIDGET STYLES
   ============================================ */

.airwave-radio-widget,
.airwave-matrix-widget,
.airwave-combined-widget,
.airwave-song-history-widget {
    padding: 16px;
    border-radius: 16px;
    border: 2px solid;
    margin-bottom: 16px;
}

.airwave-now-playing {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.02);
}

.airwave-song-info {
    margin-bottom: 12px;
}

.airwave-song-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.airwave-song-artist {
    font-size: 0.95rem;
    opacity: 0.8;
}

.airwave-song-art {
    text-align: center;
}

.airwave-album-art {
    max-width: 120px;
    max-height: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid;
}

.airwave-history-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.airwave-history-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid;
    font-size: 13px;
}

.airwave-control-buttons {
    display: flex;
    gap: 8px;
}

.airwave-play-btn,
.airwave-stop-btn,
.airwave-login-btn,
.airwave-logout-btn,
.airwave-join-btn,
.airwave-send-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.airwave-play-btn:hover,
.airwave-stop-btn:hover,
.airwave-login-btn:hover,
.airwave-logout-btn:hover,
.airwave-join-btn:hover,
.airwave-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.airwave-play-btn:disabled,
.airwave-stop-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.airwave-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.airwave-volume-slider {
    flex: 1;
    max-width: 200px;
}

.airwave-stream-select,
.airwave-stream-dropdown {
    min-width: 200px;
}

/* Status Indicators */
.airwave-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.airwave-status-connected {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.airwave-status-disconnected {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.airwave-matrix-status,
.airwave-login-status {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 2px solid;
}

/* Ticker Styles */
.airwave-ticker-container {
    overflow: hidden;
    white-space: nowrap;
  position: relative;
}

.airwave-ticker-content {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.airwave-ticker-separator {
    font-size: 24px;
    opacity: 0.5;
}

.airwave-ticker-track {
    display: inline-flex;
    gap: 24px;
}

/* Visualizer */
.airwave-visualizer {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    background: rgba(0, 0, 0, 0.02);
    text-align: center;
}

.airwave-viz-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Room Selector */
.airwave-room-selector {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.02);
}

.airwave-join-room {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.airwave-room-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

/* Message Styles */
.airwave-messages-list {
    min-height: 200px;
}

.airwave-message-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid;
}

.airwave-message-sender {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.airwave-message-content {
    font-size: 14px;
    line-height: 1.5;
}

.airwave-message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

/* Current Room Display */
.airwave-current-room {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

/* Theme-specific widget styles */
.awmx-card.awmx-theme-dark .airwave-radio-widget,
.awmx-card.awmx-theme-dark .airwave-matrix-widget,
.awmx-card.awmx-theme-dark .airwave-combined-widget,
.awmx-card.awmx-theme-dark .airwave-song-history-widget,
.awmx-theme-dark .airwave-radio-widget,
.awmx-theme-dark .airwave-matrix-widget,
.awmx-theme-dark .airwave-combined-widget,
.awmx-theme-dark .airwave-song-history-widget {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.awmx-card.awmx-theme-light .airwave-radio-widget,
.awmx-card.awmx-theme-light .airwave-matrix-widget,
.awmx-card.awmx-theme-light .airwave-combined-widget,
.awmx-card.awmx-theme-light .airwave-song-history-widget,
.awmx-theme-light .airwave-radio-widget,
.awmx-theme-light .airwave-matrix-widget,
.awmx-theme-light .airwave-combined-widget,
.awmx-theme-light .airwave-song-history-widget {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(226, 232, 240, 0.6);
    color: #1e293b;
}

.awmx-card.awmx-theme-neutral .airwave-radio-widget,
.awmx-card.awmx-theme-neutral .airwave-matrix-widget,
.awmx-card.awmx-theme-neutral .airwave-combined-widget,
.awmx-card.awmx-theme-neutral .airwave-song-history-widget,
.awmx-theme-neutral .airwave-radio-widget,
.awmx-theme-neutral .airwave-matrix-widget,
.awmx-theme-neutral .airwave-combined-widget,
.awmx-theme-neutral .airwave-song-history-widget {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(203, 213, 225, 0.6);
    color: #334155;
}

/* Apply theme styles to widgets when parent has theme class */
.awmx-theme-dark .airwave-now-playing,
.awmx-theme-dark .airwave-history-list,
.awmx-theme-dark .airwave-room-selector,
.awmx-theme-dark .airwave-current-room {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.awmx-theme-dark .airwave-play-btn,
.awmx-theme-dark .airwave-stop-btn,
.awmx-theme-dark .airwave-login-btn,
.awmx-theme-dark .airwave-logout-btn,
.awmx-theme-dark .airwave-join-btn,
.awmx-theme-dark .airwave-send-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.awmx-theme-light .airwave-now-playing,
.awmx-theme-light .airwave-history-list,
.awmx-theme-light .airwave-room-selector,
.awmx-theme-light .airwave-current-room {
    background: rgba(248, 250, 252, 0.6);
    border-color: rgba(226, 232, 240, 0.6);
    color: #1e293b;
}

.awmx-theme-light .airwave-play-btn,
.awmx-theme-light .airwave-stop-btn,
.awmx-theme-light .airwave-login-btn,
.awmx-theme-light .airwave-logout-btn,
.awmx-theme-light .airwave-join-btn,
.awmx-theme-light .airwave-send-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.awmx-theme-neutral .airwave-now-playing,
.awmx-theme-neutral .airwave-history-list,
.awmx-theme-neutral .airwave-room-selector,
.awmx-theme-neutral .airwave-current-room {
    background: rgba(241, 245, 249, 0.4);
    border-color: rgba(203, 213, 225, 0.6);
    color: #334155;
}

.awmx-theme-neutral .airwave-play-btn,
.awmx-theme-neutral .airwave-stop-btn,
.awmx-theme-neutral .airwave-login-btn,
.awmx-theme-neutral .airwave-logout-btn,
.awmx-theme-neutral .airwave-join-btn,
.awmx-theme-neutral .airwave-send-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

/* Standalone shortcodes without awmx-card wrapper */
.airwave-song-history-shortcode,
.airwave-visualizer-shortcode,
.airwave-song-history-list-shortcode,
.airwave-song-ticker-shortcode,
.airwave-news-ticker-shortcode {
    padding: 24px;
    border-radius: 20px;
    margin: 16px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
}

.airwave-song-history-shortcode:hover,
.airwave-visualizer-shortcode:hover,
.airwave-song-history-list-shortcode:hover,
.airwave-song-ticker-shortcode:hover,
.airwave-news-ticker-shortcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Apply themes to standalone shortcodes */
.awmx-theme-dark .airwave-song-history-shortcode,
.awmx-theme-dark .airwave-visualizer-shortcode,
.awmx-theme-dark .airwave-song-history-list-shortcode,
.awmx-theme-dark .airwave-song-ticker-shortcode,
.awmx-theme-dark .airwave-news-ticker-shortcode,
.airwave-song-history-shortcode.awmx-theme-dark,
.airwave-visualizer-shortcode.awmx-theme-dark,
.airwave-song-history-list-shortcode.awmx-theme-dark,
.airwave-song-ticker-shortcode.awmx-theme-dark,
.airwave-news-ticker-shortcode.awmx-theme-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.2);
}

.awmx-theme-light .airwave-song-history-shortcode,
.awmx-theme-light .airwave-visualizer-shortcode,
.awmx-theme-light .airwave-song-history-list-shortcode,
.awmx-theme-light .airwave-song-ticker-shortcode,
.awmx-theme-light .airwave-news-ticker-shortcode,
.airwave-song-history-shortcode.awmx-theme-light,
.airwave-visualizer-shortcode.awmx-theme-light,
.airwave-song-history-list-shortcode.awmx-theme-light,
.airwave-song-ticker-shortcode.awmx-theme-light,
.airwave-news-ticker-shortcode.awmx-theme-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    border-color: rgba(226, 232, 240, 0.8);
}

.awmx-theme-neutral .airwave-song-history-shortcode,
.awmx-theme-neutral .airwave-visualizer-shortcode,
.awmx-theme-neutral .airwave-song-history-list-shortcode,
.awmx-theme-neutral .airwave-song-ticker-shortcode,
.awmx-theme-neutral .airwave-news-ticker-shortcode,
.airwave-song-history-shortcode.awmx-theme-neutral,
.airwave-visualizer-shortcode.awmx-theme-neutral,
.airwave-song-history-list-shortcode.awmx-theme-neutral,
.airwave-song-ticker-shortcode.awmx-theme-neutral,
.airwave-news-ticker-shortcode.awmx-theme-neutral {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #334155;
    border-color: rgba(203, 213, 225, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .awmx-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .awmx-matrix__app {
        grid-template-columns: 1fr;
    }
    
    .awmx-matrix__sidebar {
        max-height: 300px;
    }
    
    .awmx-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .awmx-meta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    #awmx_art {
        margin: 0 auto;
    }
    
    .airwave-control-buttons {
        flex-direction: column;
    }
    
    .airwave-join-room {
        flex-direction: column;
    }
    
    .airwave-message-input {
        flex-direction: column;
    }
}
