/* Modern Mic Button Styling */
.mic-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #005bb7 0%, #002d54 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 45, 84, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    outline: none;
}

.mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 45, 84, 0.4);
}

/* The "Recording" State */
.mic-btn.recording {
    background: #dc3545; /* Turns red only when active */
    animation: modern-pulse 2s infinite;
}

/* Modern Pulse with a ring effect */
@keyframes modern-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7), 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0), 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0), 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

#visualizer {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    background-color: rgba(0,0,0,0.02); /* Slight tint to see the box */
}

/* Dim the visualizer when recording is paused */
#visualizer.paused {
    opacity: 0.3;
    filter: grayscale(1);
    transition: 0.3s;
}

#pause-icon-container.is-paused {
	background-color: #fef3c7;
	border-color: #d97706;
	color: #92400e;
}

.hidden {
  display: none !important;
}

/* Optional fade effect when controls appear */
.recording-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease-in-out;
}
/* Wave animation container (optional extra flair) */
.mic-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.call-item {
    transition: background 0.2s;
    cursor: pointer;
}

.call-item:hover {
    background: #f8f9fa;
}

.call-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.date-section-header {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #6c757d;
    padding: 15px 10px 5px;
    letter-spacing: 1px;
}

@keyframes success-pop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.link-success-badge {
    animation: success-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #badbcc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Subtle glow for the whole overlay when linked */
.overlay-success-glow {
    box-shadow: inset 0 0 20px rgba(25, 135, 84, 0.1);
    transition: box-shadow 0.5s ease-in-out;
}

/* Replace the old .btn-upload with this */
#btn-upload {
    background: linear-gradient(135deg, #005bb7 0%, #002d54 100%);
    color: white;
    border: none;
    border-radius: 50px; /* This makes it a pill, not a tiny circle */
    padding: 10px 24px;   /* Gives the text room to breathe */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 45, 84, 0.2);
    min-width: 160px; /* Ensures the button doesn't jump sizes */
}

#btn-upload:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 45, 84, 0.3);
}

#btn-upload:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

#detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
}

#detail-overlay.active {
    display: block !important;
}