/* Audio Song Recorder - Frontend CSS */

.asr-recorder-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	max-width: 400px;
	margin: 20px auto;
	padding: 0;
}

.asr-recorder-wrapper {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	color: white;
}

/* Controls */
.asr-recorder-controls {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.asr-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	outline: none;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.asr-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

.asr-btn:active {
	transform: translateY(0);
}

.asr-btn-record {
	background: linear-gradient(135deg, #ff6b6b, #ee5a52);
	border: none;
	padding: 12px 20px;
}

.asr-btn-record:hover {
	box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.asr-btn-stop {
	background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.asr-btn-pause {
	background: linear-gradient(135deg, #ffa726, #fb8c00);
}

.asr-btn-resume {
	background: linear-gradient(135deg, #66bb6a, #43a047);
}

.asr-btn-rerecord {
	background: linear-gradient(135deg, #ffa726, #fb8c00);
}

.asr-btn-submit {
	background: linear-gradient(135deg, #66bb6a, #43a047);
	flex: 1;
}

.asr-btn-small {
	padding: 8px 12px;
	font-size: 11px;
}

.asr-icon {
	font-size: 16px;
	display: inline-block;
}

.asr-text {
	display: inline;
}

/* Timer */
.asr-timer {
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	margin: 15px 0;
	font-family: 'Courier New', monospace;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Playback Section */
.asr-playback {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	padding: 15px;
	margin-top: 15px;
	color: #333;
}

.asr-playback-controls {
	margin-bottom: 15px;
}

.asr-playback-controls audio {
	border-radius: 6px;
}

/* Trimmer */
.asr-trimmer {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 15px;
	margin: 15px 0;
}

.asr-trimmer h4 {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #333;
}

.asr-trim-slider-container {
	margin-bottom: 12px;
}

.asr-trim-slider-container label {
	display: block;
	font-size: 12px;
	margin-bottom: 6px;
	color: #555;
}

.asr-slider {
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, #667eea, #764ba2);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.asr-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: white;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.asr-slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: white;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhancement */
.asr-enhancement {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 15px;
	margin: 15px 0;
}

.asr-enhancement h4 {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #333;
}

.asr-enhancement label {
	display: block;
	font-size: 12px;
	margin-bottom: 8px;
	color: #555;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.asr-enhancement input[type="checkbox"] {
	cursor: pointer;
	width: 14px;
	height: 14px;
}

/* Action Buttons */
.asr-action-buttons {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.asr-action-buttons .asr-btn {
	flex: 1;
	justify-content: center;
	margin: 0;
}

/* User Info */
.asr-user-info {
	margin-top: 15px;
}

.asr-user-info input {
	width: 100%;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-size: 14px;
	box-sizing: border-box;
}

.asr-user-info input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.asr-user-info input:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Message */
.asr-message {
	padding: 12px;
	border-radius: 6px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 500;
}

.asr-message.success {
	background: #43a047;
	color: white;
}

.asr-message.error {
	background: #ff6b6b;
	color: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
	.asr-recorder-wrapper {
		padding: 15px;
	}

	.asr-btn {
		padding: 8px 12px;
		font-size: 11px;
	}

	.asr-timer {
		font-size: 20px;
	}

	.asr-recorder-controls {
		gap: 6px;
	}

	.asr-text {
		display: none;
	}

	.asr-icon {
		font-size: 18px;
	}
}

/* Recording Animation */
@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
}

.asr-btn-stop {
	animation: pulse 1.5s infinite;
}
