/* ====== Quick Stats - Start ====== */
.stats-card {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 140px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-notebooks {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-entries {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-phrases {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-notes {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-number {
    transform: scale(1.1);
}

.stats-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.25);
}

[data-bs-theme="dark"] .stats-card {
    background: rgba(45, 55, 72, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .stats-card {
        height: 120px;
    }

    .stats-number {
        font-size: 2.5rem;
    }
}
/* ====== Quick Stats - End ====== */


/* ====== Quick Actions - Start ====== */
.quick-action-card {
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.125);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .card-icon {
    transform: scale(1.1);
}

.quick-action-card .modern-btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.quick-action-card .btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-card .btn-gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.quick-action-card .btn-gradient-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.quick-action-card .btn-gradient-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.quick-action-card .modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-action-card .section-title {
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .quick-action-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* ====== Quick Actions - End ====== */

/* ====== Home - Recent Activity - Start ====== */
.recent-activity-section {
    margin-bottom: 2rem;
}

.recent-activity-title {
    font-size: 2rem;
    font-weight: 300;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.recent-activity-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.recent-activity-card {
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.recent-activity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.recent-activity-card:hover {
    transform: translateY(-3px) translateX(3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
}

.recent-activity-card:hover::before {
    transform: scaleY(1);
}

.recent-activity-body {
    padding: 1.2rem 1.5rem;
}

.recent-activity-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.recent-activity-info {
    flex: 1;
    min-width: 0;
}

.recent-activity-notebook {
    font-weight: 700;
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.recent-activity-title-text {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.recent-activity-date {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.recent-activity-date::before {
    content: '🕐';
    font-size: 0.7rem;
}

.recent-activity-btn {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.recent-activity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.recent-activity-btn:active {
    transform: translateY(0);
}

.recent-activity-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.4) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
    color: #9ca3af;
    font-style: italic;
    position: relative;
}

.recent-activity-empty::before {
    content: '📚';
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Dark theme adaptations */
[data-bs-theme="dark"] .recent-activity-title {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .recent-activity-title::after {
    background: linear-gradient(90deg, #90cdf4 0%, #a78bfa 100%);
}

[data-bs-theme="dark"] .recent-activity-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.7) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .recent-activity-card:hover {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.85) 100%);
    box-shadow: 0 12px 40px rgba(144, 205, 244, 0.15);
}

[data-bs-theme="dark"] .recent-activity-card::before {
    background: linear-gradient(135deg, #90cdf4 0%, #a78bfa 100%);
}

[data-bs-theme="dark"] .recent-activity-notebook {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .recent-activity-title-text {
    color: #a0aec0;
}

[data-bs-theme="dark"] .recent-activity-date {
    color: #718096;
}

[data-bs-theme="dark"] .recent-activity-empty {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.6) 0%, rgba(26, 32, 44, 0.4) 100%);
    border-color: rgba(144, 205, 244, 0.2);
    color: #718096;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .recent-activity-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .recent-activity-btn {
        width: 100%;
        text-align: center;
    }

    .recent-activity-body {
        padding: 1rem;
    }

    .recent-activity-empty {
        padding: 2rem 1rem;
    }
}
/* ====== Home - Recent Activity - End ====== */