/* Component Styles */

/* Note Card */
.note-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    max-height: 400px;
    overflow: hidden;
}

.note-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.note-card .title {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-color);
    min-height: 24px;
    /* Ensure click area if empty */
}

.note-card .content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-card .actions {
    margin-top: 12px;
    display: flex;
    opacity: 0;
    transition: opacity 0.2s;
    gap: 8px;
}

.note-card:hover .actions {
    opacity: 1;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-color);
    /* For "Keep" style, usually a mix of colors or just accent */
    border: 1px solid var(--border-color);
    z-index: 50;
    transition: transform 0.2s;
}

.fab:hover {
    transform: scale(1.05);
}

/* Modals / Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--modal-bg);
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px;
    transform: translateY(20px);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal input.title-input {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    width: 100%;
    background: transparent;
    color: var(--text-color);
}

.modal textarea.content-input {
    width: 100%;
    min-height: 150px;
    background: transparent;
    resize: none;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.1s;
    color: var(--text-color);
}

.btn:hover {
    background: var(--hover-bg);
}

.btn-primary {
    color: var(--accent-color);
    /* Often simply text color in Keep, but let's use check color */
}

/* Auth Container */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: var(--hover-bg);
}