#top-header {
    z-index: 1001;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(46, 62, 73, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Mobile nav dropdown: match dark header theme */
#navbar .uk-navbar-dropdown {
    background: #2e3e49;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    min-width: 200px;
}

#navbar .uk-navbar-dropdown-nav > li > a {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    gap: 8px;
}

#navbar .uk-navbar-dropdown-nav > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

#navbar .uk-navbar-dropdown-nav > li.uk-active > a {
    color: #1e87f0;
}

#navbar .uk-navbar-dropdown-nav > li > a .uk-icon svg {
    color: inherit;
    fill: currentColor;
    stroke: currentColor;
}

#content {
    margin-top: 52px;
    margin-left: 0;
    transition: margin 0.2s cubic-bezier(.4, 0, .2, 1);
}

.uk-navbar-nav>li>a,
.uk-navbar-item,
.uk-navbar-toggle {
    min-height: 52px;
}

.uk-card-default.uk-card-hover:hover,
.uk-card-primary.uk-card-hover:hover,
.uk-card-secondary.uk-card-hover:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, .16)
}

.uk-input,
.uk-select,
.uk-textarea {
    background-color: #f7f7ff;
}

.uk-tab>*>a {
    border-bottom: 2px solid transparent;
}

.uk-badge-answered {
    background: #32d296;
}

.uk-badge-busy {
    background: #faa05a;
}

.uk-badge-no-answer {
    background: #666;
}

.uk-badge-failed {
    background: #f0506e;
}

.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

/* Стилі для тривалості дзвінків */
.duration-zero {
    color: #f0506e;
}

.duration-short {
    color: #faa05a;
}

.duration-medium {
    color: #0f6ecd;
}

.duration-long {
    color: #32d296;
}

/* Стилі для інтерактивних рядків таблиці */
.cdr-row {
    transition: all 0.2s ease;
}

.cdr-row:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cdr-row:active {
    transform: translateY(0);
}

/* Стилі для модального вікна */
.uk-modal-dialog {
    max-width: 800px;
}

.uk-description-list dt {
    font-weight: 600;
    color: #666;
}

.uk-description-list dd code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Media Player Styles */
/* Player 1: Simple Button Style */
.simple-player {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    max-width: 400px;
}

.play-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #007cba;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.play-btn:hover {
    background: #005f8a;
}

.time-info {
    font-size: 12px;
    color: #666;
    min-width: 80px;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #007cba;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

/* Player 2: Compact Inline */
.compact-player {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: #007cba;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.compact-player:hover {
    background: #005f8a;
}

.compact-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

/* Player 3: Minimal Waveform Style */
.wave-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    max-width: 500px;
}

.wave-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #007cba;
    background: transparent;
    color: #007cba;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wave-btn:hover,
.wave-btn.playing {
    background: #007cba;
    color: white;
}

.wave-visual {
    flex: 1;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.wave-progress {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a0e0);
    width: 0%;
    border-radius: 15px;
    transition: width 0.1s;
}

.duration {
    font-size: 11px;
    color: #888;
    min-width: 40px;
    text-align: right;
}

/* Player 4: Material Design */
.material-player {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    transition: box-shadow 0.2s;
}

.material-player:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.material-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #1976d2;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.material-btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.material-progress-container {
    flex: 1;
    margin-right: 16px;
}

.material-progress {
    width: 100%;
    height: 20px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.material-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.material-progress-bar {
    position: absolute;
    left: 0;
    height: 6px;
    background: #1976d2;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
    pointer-events: none;
}

.material-time {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.report-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.metric-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #1e87f0;
}

.metric-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1e87f0;
    line-height: 1;
}

.metric-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.performance-good {
    border-left-color: #32d296;
}

.performance-good .metric-number {
    color: #32d296;
}

.performance-warning {
    border-left-color: #faa05a;
}

.performance-warning .metric-number {
    color: #faa05a;
}

.performance-danger {
    border-left-color: #f0506e;
}

.performance-danger .metric-number {
    color: #f0506e;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}
.flatpickr-btn-bar {
    display: flex;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid #e8e8e8;
    justify-content: flex-end;
}

/* Large screen navbar font-size overrides (1600px+) */
@media (min-width: 1600px) {
    .uk-navbar-nav > li > a {
        font-size: 15px;
    }
    #top-header .uk-navbar-item {
        font-size: 15px;
    }
}
