/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(167, 139, 250, 0.5), 0 0 10px rgba(167, 139, 250, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(167, 139, 250, 0.8), 0 0 20px rgba(167, 139, 250, 0.5);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes shimmerText {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes alertShow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes alertHide {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Base Styles */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #f472b6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

.textarea-glow {
    transition: all 0.3s ease;
}

.textarea-style {
    background: var(--textarea-bg);
    border-color: var(--textarea-border);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.light-mode .textarea-style {
    color: #1f2937;
}

.dark-mode .textarea-style {
    color: #f3f4f6;
}

.textarea-glow:focus {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-2px);
}

.dark-mode .textarea-glow:focus {
    background-color: rgba(17, 24, 39, 0.9);
}

.light-mode .textarea-glow:focus {
    background-color: rgba(255, 255, 255, 0.95);
}

.light-mode .textarea-style::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

.dark-mode .textarea-style::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

.text-primary-color {
    color: var(--text-primary);
}

.text-secondary-color {
    color: var(--text-secondary);
}

.button-style {
    background: var(--button-bg);
    transition: all 0.3s ease;
}

.textarea-shimmer {
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Theme Variables */
.light-mode {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --textarea-bg: rgba(255, 255, 255, 0.9);
    --textarea-border: rgba(139, 92, 246, 0.3);
    --button-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --activity-bg: rgba(255, 255, 255, 0.1);
}

.dark-mode {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-light: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.4);
    --textarea-bg: rgba(17, 24, 39, 0.8);
    --textarea-border: rgba(107, 114, 128, 0.5);
    --button-bg: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    --activity-bg: rgba(31, 41, 55, 0.6);
}

body {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    transition: background 0.5s ease;
}

/* Mode Toggle */
.mode-toggle {
    transition: transform 0.3s ease;
}

.mode-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Animation Classes */
.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce 2s ease-in-out infinite;
}

.logo-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* Button Effects */
.button-hover-effect {
    position: relative;
    overflow: hidden;
}

.button-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.button-hover-effect:hover::before {
    left: 100%;
}

/* Textarea Effects */
.textarea-shine {
    position: relative;
    overflow: hidden;
}

.textarea-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.textarea-shine:focus::after {
    left: 100%;
}

/* Card Hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Success Alert Styles */
.success-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
    min-width: 400px;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    animation: alertShow 0.5s ease-out forwards;
}

.dark-mode .success-alert {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
}

.light-mode .success-alert {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
}

.success-alert.hiding {
    animation: alertHide 0.3s ease-in forwards;
}

.success-alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.success-alert-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.success-alert-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.success-alert-timer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}

/* Error Alert Styles */
.error-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.3);
    min-width: 400px;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    animation: alertShow 0.5s ease-out forwards;
}

.dark-mode .error-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
}

.light-mode .error-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
}

.error-alert.hiding {
    animation: alertHide 0.3s ease-in forwards;
}

.error-alert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shake 0.5s ease-in-out;
}

.error-alert-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-alert-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.error-alert-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Alert Overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.alert-overlay.hiding {
    animation: fadeOut 0.3s ease-in forwards;
}

/* Discord Alert Styles */
.discord-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.4);
    z-index: 10001;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: alertShow 0.4s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.discord-alert.hiding {
    animation: alertHide 0.3s ease-out forwards;
}

.discord-alert-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.discord-alert-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.discord-alert-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.discord-alert-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.discord-alert-button {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    outline: none;
}

.discord-alert-button-primary {
    background: white;
    color: #5865F2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discord-alert-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.discord-alert-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.discord-alert-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .discord-alert {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .discord-alert-icon {
        width: 60px;
        height: 60px;
    }
    
    .discord-alert-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .discord-alert-title {
        font-size: 1.25rem;
    }
    
    .discord-alert-message {
        font-size: 0.9rem;
    }
    
    .discord-alert-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* Activity Container */
.activity-container {
    background: var(--activity-bg);
    border-color: var(--glass-border);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.light-mode .button-style {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark-mode .button-style {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

