
/* Space Theme Background */
body {
    background: #000000;
    position: relative;
    overflow-x: hidden;
}
/* Animated stars background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Shooting stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, transparent, #ffffff, transparent);
    animation: shoot 3s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(500px) translateY(500px) rotate(45deg);
        opacity: 0;
    }
}
/* Bubbly glass containers */
.glass-bubble {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(147, 51, 234, 0.2),
        0 0 40px rgba(147, 51, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}
/* Note cards with bubbly design */
.note-card {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #9333ea, #ec4899, #9333ea);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.note-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.6);
}

.note-card:hover::before {
    opacity: 0.5;
}
/* Note view styling */
#noteView .editor-content {
    min-height: 400px;
}

#noteContent {
    line-height: 1.8;
    font-size: 16px;
    word-wrap: break-word;
}

/* Editor redesign with separate containers */
.editor-tools {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px 25px 0 0;
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-bottom: none;
    padding: 20px;
    position: relative;
}

.editor-content {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0 0 25px 25px;
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-top: none;
    min-height: 500px;
    position: relative;
}

.editor-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.8), transparent);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.6);
}

#editor {
    background: transparent;
    border: none;
    line-height: 1.8;
    color: #ffffff;
    min-height: 440px;
    white-space: pre-wrap;
}

.tool-btn.active {
    background: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.6);
    border-color: rgba(236, 72, 153, 0.8);
    color: #ffffff;
}

#editor:focus {
    outline: none;
}

#editor::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
/* Tool buttons with bubbly design */
.tool-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 12px;
    padding: 8px 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.6), transparent);
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.tool-btn:hover {
    background: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.5);
    border-color: rgba(147, 51, 234, 0.8);
}

.tool-btn:hover::before {
    width: 100%;
    height: 100%;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a855f7, #f472b6);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.8);
}
/* Modal animations */
.modal-enter {
    animation: modalBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(10deg);
    }
    50% {
        transform: scale(1.05) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Toast animation */
.toast-show {
    animation: toastBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes toastBounce {
    0% {
        transform: translateY(100px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Enhanced gradient text animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}
/* Floating bubbles effect */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.4), rgba(236, 72, 153, 0.2), transparent);
    animation: bubbleFloat 8s infinite ease-in-out;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.15);
        opacity: 0.8;
    }
    50% {
        transform: translateY(15px) translateX(-15px) scale(0.85);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) translateX(8px) scale(1.05);
        opacity: 0.7;
    }
}
/* Glowing buttons */
.glow-btn {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border: 1px solid rgba(147, 51, 234, 0.5);
    border-radius: 15px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(147, 51, 234, 0.8);
    border-color: rgba(236, 72, 153, 0.6);
}

.glow-btn:hover::before {
    left: 100%;
}
/* Input fields with glass effect */
.glass-input {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.4);
    border-radius: 15px;
    padding: 12px 16px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #9333ea;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.6);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
/* Content wrapper for z-index */
.content-wrapper {
    position: relative;
    z-index: 10;
}
