/* Root Theme Colors */
:root {
    --primary-color: #4c6ef5;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* General Layout */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #f5f5f5;
    text-align: center;
    color: #888;
}

/* Feature Cards */
.feature-card {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Notes Page Layout */
.notes-container {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 160px);
}

.notes-sidebar {
    width: 260px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.notes-content {
    flex: 1;
}

.user-profile {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Note Card Styling */
.note-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    background-color: #fff;
    transition: all 0.2s ease;
}

    .note-card:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .note-card.pinned {
        border-left: 4px solid var(--warning-color);
    }

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Note Preview Content */
.note-preview {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4rem;
    color: #555;
}

    .note-preview::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), white);
    }

/* Attachments Section */
.attachments-preview {
    margin: 10px 0;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    font-size: 0.9rem;
}

.file-icon {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Note Actions Footer */
.note-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    gap: 0.5rem;
}

    .note-actions small {
        font-size: 0.85rem;
        color: #888;
    }

    .note-actions .btn-group {
        display: flex;
        gap: 0.4rem;
    }

/* Note Details Page */
.note-details-page {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.note-content {
    min-height: 200px;
}

/* Quill Editor */
.ql-editor {
    min-height: 200px;
}

.ql-toolbar {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.ql-container {
    font-size: 16px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Empty State */
.empty-state {
    padding: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.empty-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .notes-container {
        flex-direction: column;
    }

    .notes-sidebar {
        width: 100%;
    }

    .note-card {
        padding: 1rem;
    }

    .note-actions {
        flex-direction: column;
        align-items: flex-start;
    }

        .note-actions .btn-group {
            flex-wrap: wrap;
            gap: 0.25rem;
        }
}
