/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    color: white;
    position: relative;
}

/* Background Shapes Animation */
.background-shapes .shape {
    position: absolute;
    filter: blur(50px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #ff007a;
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: #7a00ff;
    border-radius: 50%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Main Container */
.app-container {
    width: 90%;
    max-width: 500px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Glassmorphism Effect Class */
.glass-effect, .glass-btn, .glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Input Area */
.input-area {
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

textarea {
    width: 100%;
    height: 80px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
    resize: none;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-btn {
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Kustom */
.notes-grid::-webkit-scrollbar {
    width: 6px;
}
.notes-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

/* Single Note Card */
.note-card {
    border-radius: 12px;
    padding: 15px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.note-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 8px;
}

.delete-btn {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.delete-btn:hover {
    color: #ff3b3b;
    transform: scale(1.1);
}