/* Main Container */
.ftf-audio-recorder {
    /*max-width: 400px;*/
    margin: 20px auto;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	border: 1px solid var(--black-variant);
	border-radius: 9px;
    overflow: hidden;
}

/* Tab Navigation */
.ftf-tab-nav {
    display: flex;
    width: 100%;
    background: #f5f5f5;
}

.ftf-tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
	background: none;
	border-radius: 0px;
	border: none;
	border-bottom: 1px solid var(--black-variant);
	font-family: var(--primary-font);
	color: var(--black-variant);

}

.ftf-tab-btn:hover {
    background: #e9e9e9;
    color: #333;
	border: 0px;
			border-bottom: 1px solid var(--black-variant);

}

.ftf-tab-btn.active {
    background: white;
	border-bottom: 1px solid #fff;
	border-left: 1px solid var(--black-variant);
}

.ftf-tab-btn.active:first-of-type {	border-right: 1px solid var(--black-variant); border-left: 0px;
}

/* Tab Content */
.ftf-tab-content {
    display: none;
    padding: 40px 20px;
}

.ftf-tab-content.active {
    display: block;
}

/* Written Tab Placeholder */
.fluentform .ff-el-input--label {text-align: left !important; display: block !important;}

/* Record Container */
.ftf-record-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Progress Ring */
.ftf-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.ftf-progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.ftf-progress-bg {
    fill: none;
    stroke: #fcfaf1;
    stroke-width: 18;
}

.ftf-progress-bar {
    fill: none;
    stroke-width: 18;

    stroke-dasharray: 314.16; /* 2 * π * 50 */
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 0.5s ease;
}

.ftf-progress-recording {
    stroke: #ff7878;
	

}

.ftf-progress-playback {
    stroke: #8dc0e9;
}

/* Loading text */
.ftf-loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* Circle Buttons */
.ftf-circle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ftf-record-btn {
    background: #4CAF50;
		top: 50%;
}


.ftf-stop-btn {
    background: #ff4444;
		top: 50%;
}


.ftf-review-btn {
    background: #2196F3;
		top: 50%;
}

.ftf-record-btn:hover {
    background: #45a049;
    transform: translate(-50%, -50%) scale(1.05);
	border: 0px;
}

.ftf-record-btn:active {
    background: #3d8b40;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.1s ease;
	top: 50%;
}

.ftf-stop-btn:hover {
    background: #cc0000;
    transform: translate(-50%, -50%) scale(1.05);
		border: 0px;
}

.ftf-stop-btn:active {
    background: #b30000;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.1s ease;
	top: 50%;
}

.ftf-review-btn:hover {
    background: #1976D2;
    transform: translate(-50%, -50%) scale(1.05);
		border: 0px;
}

.ftf-review-btn:active {
    background: #1565C0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.1s ease;
	top: 50%;
}

.ftf-btn-icon {
    width: 27px;
    filter: brightness(0) invert(1); /* Make icons white */
}

/* Text Elements */
.ftf-main-text {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.ftf-timer {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 10px 0;
    text-align: center;
}

/* Action Buttons */
.ftf-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}



.ftf-text-btn:hover {border: 0px;}

.ftf-save-btn.ftf-text-btn {
    background: #4CAF50;
    color: white;
    font-family: var(--primary-font);
    letter-spacing: normal;
    text-transform: none;
}

.ftf-save-btn.ftf-text-btn:hover {
    background: #45a049;
}

.ftf-trash-btn.ftf-text-btn {
    background: #fff;
    color: inherit;
    font-family: var(--primary-font);
    text-transform: none;
    border: 1px solid;
    padding: 9px;
}

.ftf-trash-btn.ftf-text-btn:hover {
    border-color: #1976D2;
	color: #1976D2;
}

/* Recording Animation */
.ftf-recording .ftf-progress-ring {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Form Styles */
.ftf-user-info {
    margin: 20px 0;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    display: flex
;
    flex-direction: column;
    align-items: center;
}

.ftf-field-group {
    margin-bottom: 15px;
    text-align: left;
	width: 100%;
}

.ftf-field-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.ftf-name-field,
.ftf-email-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.ftf-name-field:focus,
.ftf-email-field:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Messages */
.ftf-messages {
    margin-top: 15px;
}

.ftf-message {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.ftf-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ftf-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ftf-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Status indicators */
.ftf-recording-status {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

/* Success State */
.ftf-success-state {
    text-align: center;
}

.ftf-success {
    background: #d0f1d1;
    padding: 9px;
    border-radius: 9px;
}

.ftf-progress-ring.ftf-success .ftf-progress-bg {
    stroke: #e8f5e8;
}

.ftf-success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ftf-success-icon .ftf-btn-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

/* Success State Button */
.ftf-success-btn {
    background: #4CAF50;
    cursor: default; /* Not clickable */
}

.ftf-success-btn:hover {
    background: #4CAF50; /* No hover effect */
    transform: translate(-50%, -50%); /* No scaling */
}

/* Responsive */
@media (max-width: 480px) {

    
    .ftf-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ftf-text-btn {
        min-width: 150px;
    }
}

.instructions h3 {
    font-family: var(--primary-font);
    font-size: 16px;
    text-align: left;
    font-weight: bold;
    color: #666 !important;
	    height: 1em;
    margin: 1em 0 .5em 0;
}
.instructions ul {
    text-align: left;
    margin: 1.5em 0px;
    padding: 0 1.2em;
    font-size: 14px;
    color: #666;
}
.instructions ul li {
    height: auto;
    line-height: 1.3em;
    margin-bottom: .5em;
}