/* 
   MedPenguin - Notes System Styles
   Floating Sidebar and Button
*/

:root {
    --notes-width: 380px;
}

/* Floating Button */
.btn-open-notes {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-open-notes:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-open-notes.hidden {
    display: none;
}

/* Sidebar */
.notes-sidebar {
    position: fixed;
    top: 0;
    right: calc(-1 * var(--notes-width));
    width: var(--notes-width);
    height: 100vh;
    background: rgba(15, 23, 42, 0.85); /* Darker semi-transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.notes-sidebar.active {
    right: 0;
}

.notes-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.btn-close-notes {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-notes:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.notes-body {
    flex: 1;
    padding: 0;
    background: transparent;
}

.notes-textarea {
    width: 100%;
    height: 100%;
    padding: 24px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.notes-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.notes-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.save-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.status-dot.saving {
    background: #eab308;
    animation: pulse 1s infinite;
}

.status-dot.saved {
    background: #22c55e;
}

.notes-info {
    color: var(--primary);
    font-weight: 600;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Screen Mode Cards */
.note-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    :root {
        --notes-width: 100%;
    }
}
