/* 现代化样式设计 */

/* 苹果风格备忘录列表样式 */
.memo-list-container {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.memo-item {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memo-item:last-child {
    border-bottom: none;
}

.memo-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.memo-item:active {
    background: #e9ecef;
    transform: translateX(2px);
}

.memo-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.memo-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 12px;
}

.memo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.memo-time {
    font-size: 10px;
    color: #8e8e93;
    font-weight: 500;
    white-space: nowrap;
    min-width: 120px;
    text-align: right;
}

.memo-priority-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.memo-priority-indicator.high {
    background: #ff3b30;
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.4);
}

.memo-priority-indicator.medium {
    background: #ff9500;
    box-shadow: 0 0 6px rgba(255, 149, 0, 0.4);
}

.memo-preview {
    font-size: 14px;
    color: #636366;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.memo-actions {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.memo-item:hover .memo-actions {
    opacity: 1;
}

.memo-delete-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #ff3b30;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.memo-delete-btn:hover {
    background: rgba(255, 59, 48, 0.1);
    transform: scale(1.1);
}

/* 模态框样式优化 */
.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: none;
}

.memo-detail-content {
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
}

.memo-content {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
    border-left: 4px solid #007aff;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .memo-item {
        padding: 12px 16px;
    }

    .memo-title {
        font-size: 15px;
    }

    .memo-preview {
        font-size: 13px;
    }

    .memo-actions {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 8px;
        text-align: right;
    }
}

:root {
    --primary-color: #6c757d;
    --primary-gradient: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --secondary-color: #adb5bd;
    --secondary-gradient: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 全局样式 */
* {
    transition: var(--transition);
}

body {
    background: #f5f5f5;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 导航栏样式 */
.navbar-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-2px);
}

/* 容器样式 */
.container-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-top: 2rem;
}

/* 卡片样式 */
.card-modern {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header-modern {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body-modern {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn-modern {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-modern-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-modern-secondary {
    background: var(--secondary-gradient);
    color: white;
}

.btn-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
    color: white;
}

.btn-modern-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ff5252 100%);
    color: white;
}

.btn-modern-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    color: white;
}

/* 表单样式 */
.form-control-modern {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label-modern {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* 徽章样式 */
.badge-modern {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-priority-high {
    background: var(--danger-color);
    color: white;
}

.badge-priority-medium {
    background: var(--warning-color);
    color: var(--dark-color);
}

.badge-priority-low {
    background: var(--success-color);
    color: white;
}

.badge-category {
    background: var(--primary-color);
    color: white;
}

/* 警告框样式 */
.alert-modern {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-modern-info {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert-modern-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-modern {
        margin: 1rem;
        padding: 1rem;
    }

    .login-card {
        margin: 1rem;
        padding: 2rem;
    }

    .card-modern {
        margin-bottom: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}