.text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-expanded {
    display: block;
}

/* Recording Card */
.recording-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Timer Section */
.recording-timer-section {
    margin-bottom: 20px;
}

/* Visible Progress Bar */
.recording-progress-bar-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 30px;
}

.recording-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recording-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2d5f3f 0%, #4a9d6f 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.timer-display {
    font-size: 20px;
    font-weight: 600;
    color: #2d5f3f;
    margin-bottom: 8px;
}

.timer-subtitle {
    font-size: 14px;
    color: #666;
}

/* Action Buttons */
.recording-actions {
    gap: 12px;
    flex-wrap: wrap;
}

.rec-action-btn {
    background: white;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.rec-action-btn:hover {
    background: #f8f9fa;
    border-color: #2d5f3f;
    transform: translateY(-2px);
}

.rec-action-btn i {
    font-size: 20px;
    line-height: 1;
}

.rec-action-btn .rec-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.rec-stop-btn {
    background: #2d5f3f;
    border-color: #2d5f3f;
}

.rec-stop-btn i,
.rec-stop-btn .rec-label {
    color: white;
}

.rec-stop-btn:hover {
    background: #234a32;
    border-color: #234a32;
}

/* Submit Button */
.rec-submit-btn {
    background: #2d5f3f;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rec-submit-btn:hover {
    background: #234a32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.rec-submit-btn i {
    font-size: 18px;
}

/* Recording waves animation */
.recording-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 30px;
}

.recording-waves .wave {
    display: inline-block;
    width: 3px;
    height: 100%;
    background: linear-gradient(to top, #dc3545, #ff6b6b);
    border-radius: 10px;
    animation: wave-pulse 0.8s ease-in-out infinite;
    transition: height 0.3s ease;
}

/* Paused state - flat line */
.recording-waves.paused .wave {
    height: 3px !important;
    animation: none;
    opacity: 0.8;
}

.recording-waves .wave:nth-child(1) {
    animation-delay: 0s;
}

.recording-waves .wave:nth-child(2) {
    animation-delay: 0.1s;
}

.recording-waves .wave:nth-child(3) {
    animation-delay: 0.2s;
}

.recording-waves .wave:nth-child(4) {
    animation-delay: 0.3s;
}

.recording-waves .wave:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave-pulse {
    0%,
    100% {
        height: 20%;
        opacity: 0.6;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

/* Response Modal Styles */
#responseModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

#responseModal .modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

#responseModal .modal-body {
    padding: 2rem;
}

#responseModal .modal-footer {
    padding: 0.5rem 1.5rem 1.5rem;
}

#responseModal .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.5rem 2rem;
    font-weight: 600;
}

#responseModal .btn-primary:hover {
    background: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}
