.note-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
}

.note-card {
    width: 100%;
    max-width: 900px;
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px - 4rem);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.note-card-header {
    padding: 2rem;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}

.note-title {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; 
}

.note-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.metadata-item.expiry {
    color: #fbbf24;
}

.burn-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b1f1f;
    color: #facc15;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
    margin-top: 0.5rem;
}

.alert-warning {
    background: #3b1f1f;
    color: #fbbf24;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.note-card-content {
    padding: 2rem;
    background: #111827;
    overflow-y: auto;
    flex-grow: 1;
    line-height: 1.7;
}

.note-card-content pre {
    margin: 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.95rem;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    background: transparent;
    line-height: 1.7;
    max-width: 70ch;
}

.note-card-footer {
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: #1e293b;
    border-top: 1px solid #334155;
    flex-shrink: 0;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .note-container {
        padding: 1rem;
        min-height: calc(100vh - 60px);
    }

    .note-card-header {
        padding: 1.5rem;
    }

    .note-title {
        font-size: 1.5rem;
    }

    .note-metadata {
        gap: 1rem;
    }

    .metadata-item {
        font-size: 0.75rem;
    }

    .note-card-content {
        padding: 1.5rem;
    }

    .note-card-content pre {
        font-size: 0.875rem;
    }

    .note-card-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }
}