/* Audio-Recorder V2.0 — Custom styles */

/* Clock in navbar */
#ar-clock {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

/* Source cards */
.ar-source-card {
    transition: box-shadow 0.2s;
}
.ar-source-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ar-source-card.recording {
    border-left: 3px solid #f0506e;
}

/* Status badge */
.ar-status-badge.recording {
    background-color: #f0506e !important;
    color: #fff !important;
    animation: ar-pulse 1.5s infinite;
}
.ar-status-badge.idle {
    background-color: #e5e5e5 !important;
    color: #666 !important;
}

@keyframes ar-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* Progress bar */
.ar-progress::-webkit-progress-value { background: #f0506e; }
.ar-progress::-moz-progress-bar      { background: #f0506e; }

/* Floating audio player (recordings page) */
.ar-floating-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ar-floating-player audio {
    flex: 1;
    height: 36px;
}
.ar-floating-player #ar-player-name {
    max-width: 220px;
    font-size: 12px;
    color: #ccc;
}

/* Monitor player in dashboard cards */
.ar-monitor-player audio {
    height: 30px;
    border-radius: 4px;
}

/* Recordings list table */
.ar-rec-table {
    border-collapse: separate;
    border-spacing: 0;
}
.ar-rec-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #bbb;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}
.ar-rec-table tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f2f2;
    vertical-align: middle;
}
.ar-rec-row {
    cursor: pointer;
    transition: background .1s;
}
.ar-rec-row:hover {
    background: #fafafa;
}
.ar-rec-row:hover td:last-child a {
    color: #1e87f0 !important;
}

/* Inline meta-tags (segmenti / marker) in recordings list */
.ar-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px 2px 5px;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1;
}
.ar-tag-off {
    border-color: #e8e8e8;
    color: #d0d0d0;
}
.ar-tag-on {
    border-color: #aaa;
    color: #555;
}

/* Stato colonna responsive */
.ar-status-dot {
    display: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
@media (max-width: 960px) {
    .ar-status-text { display: none; }
    .ar-status-dot  { display: inline-block; }
}

/* Code block */
.ar-code-block {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 12px;
    word-break: break-all;
    white-space: pre-wrap;
}

/* Marker shortcut hint */
kbd {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
    background: #f5f5f5;
    font-family: ui-monospace, monospace;
}

/* Marker modal auto-save countdown */
#ar-marker-countdown {
    font-variant-numeric: tabular-nums;
    color: #999;
}

/* Recording indicator dot */
.ar-rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f0506e;
    margin-right: 4px;
    animation: ar-pulse 1s infinite;
}

/* Table improvements */
.uk-table td { vertical-align: middle; }

/* Riga del cue attualmente in riproduzione nel player inline */
tr.ar-cue-active td { background: rgba(232, 48, 74, 0.08); }
