/**
 * QuizEdu Membership Plugin - Custom Styles
 */

/* Main wrapper */
#quizedu-mem-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Form animations */
.quizedu-mem-form-container {
    animation: quizedu-mem-fadeIn 0.3s ease-in-out;
}

@keyframes quizedu-mem-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Message animations */
#quizedu-mem-messages {
    animation: quizedu-mem-slideDown 0.3s ease-in-out;
}

@keyframes quizedu-mem-slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logged in message animation */
.quizedu-mem-logged-in-message {
    animation: quizedu-mem-fadeIn 0.5s ease-in-out;
}

/* Input focus effects */
#quizedu-mem-wrapper input:focus {
    outline: none;
}

/* Button loading state */
#quizedu-mem-wrapper button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Tab hover effects */
.quizedu-mem-form-tab {
    cursor: pointer;
}

/* Smooth transitions */
#quizedu-mem-wrapper * {
    transition-property: color, background-color, border-color, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Custom scrollbar for messages */
#quizedu-mem-messages::-webkit-scrollbar {
    width: 6px;
}

#quizedu-mem-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#quizedu-mem-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#quizedu-mem-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #quizedu-mem-wrapper {
        padding: 1rem;
    }
    
    .quizedu-mem-form-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Print styles */
@media print {
    #quizedu-mem-wrapper {
        display: none;
    }
}
