/* Custom styles for the meditation admin panel */

/* Ensure proper line clamping */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Audio player styling */
audio {
    width: 100%;
    height: 40px;
}

audio::-webkit-media-controls-panel {
    background: #f8fafc;
    border-radius: 8px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #64748b;
    font-size: 12px;
}

/* Modal animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease-out;
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
    transition: all 0.2s ease-in;
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form improvements */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Card hover effects */
.card-hover {
    transition: all 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Notification animations */
.notification-enter {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.notification-enter-active {
    opacity: 1;
    transform: translateY(0);
}

.notification-exit {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in;
}

.notification-exit-active {
    opacity: 0;
    transform: translateY(-10px);
}
