/**
 * 便签应用样式表
 * 包含所有自定义样式
 */

:root {
    --primary-color: #4e73df;
    --secondary-color: #f8f9fc;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    --transition: all 0.3s ease-in-out;
}
a{
 text-decoration: unset;
}
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
}

/* 导航栏样式 */
.navbar {
    /*box-shadow: var(--shadow);*/
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* 便签卡片样式 - 根据图片设计优化 */
.note-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    border: none;
    overflow: hidden;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
    position: relative;
}

.note-content {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: #555;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.6;
    position: relative;
    /*max-height: 5rem;*/
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    position: relative;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.note-image {
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
}

/* 颜色选择器 */
.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-option {
    width: 2rem;
    height: 1.3rem;
    /*border-radius: 50%;*/
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

/* 表单样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4262c5;
    border-color: #4262c5;
}

/* 动画效果 */
.animate-hover {
    transition: var(--transition);
}

.animate-hover:hover {
    transform: translateY(-3px);
}

/* 密码保护图标 */
.note-protected {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: var(--warning-color);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .note-card {
        min-height: 180px;
    }
}

/* 管理面板样式 */
.admin-card {
    border-left: 0.25rem solid var(--primary-color);
    border-radius: 0.35rem;
    box-shadow: var(--shadow);
}

.admin-card.card-stats-users {
    border-left-color: var(--info-color);
}

.admin-card.card-stats-notes {
    border-left-color: var(--success-color);
}

.admin-card.card-stats-views {
    border-left-color: var(--warning-color);
}

/* 自定义动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* 图片上传预览 */
.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: 0.25rem;
    display: none;
}

/* 便签详情页样式 - 根据图片设计优化 */
.note-detail {
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.note-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.note-detail .note-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.note-detail .note-content {
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    margin-bottom: 2rem;
    white-space: pre-line;
}

/* Emoji样式 */
.emoji-image {
    font-size: 5rem;
    /* text-align: center; */
    /* padding: 15px 0; */
    margin: 10px 0;
}
.note-detail .note-image {
    margin: 1.5rem 0;
}

.note-detail .note-meta {
    color: #6c757d;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* 密码保护表单 */
.password-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    background-color: white;
}

/* 页脚样式 */
footer {
    margin-top: 3rem;
    /*box-shadow: 0 -0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);*/
}