/* Tips App Styles */
.tips-app {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: var(--window-bg);
    color: var(--text-color);
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
    overflow: hidden;
}

/* Sidebar */
.tips-sidebar {
    width: 260px;
    background-color: rgba(243, 243, 243, 0.5);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    flex-shrink: 0;
}

.tips-search {
    margin-bottom: 20px;
    padding: 0 10px;
}

.tips-search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--window-bg);
    color: var(--text-color);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.tips-search-input:focus {
    border-color: var(--accent-color);
}

.tips-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
}

.tips-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tips-nav-item.active {
    background-color: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.tips-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    height: 20px;
    width: 3px;
    background-color: var(--accent-color);
    border-radius: 0 2px 2px 0;
}

.tips-nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Main Content */
.tips-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background-color: var(--window-bg);
}

/* Hero Section */
.tips-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.tips-hero-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1e293b;
}

.tips-hero-text p {
    font-size: 16px;
    color: #64748b;
    max-width: 500px;
    line-height: 1.5;
}

.tips-hero-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Content Sections */
.tips-section {
    padding: 30px 40px;
}

.tips-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.tips-section h3 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.tips-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Alert Box */
.tips-alert {
    background-color: rgba(0, 120, 215, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

.tips-alert strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Lists */
.tips-list {
    margin: 15px 0;
    padding-left: 25px;
}

.tips-list li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-color);
}

.tips-list li strong {
    font-weight: 600;
    color: var(--accent-color);
}

/* Grid Layout */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card Styles */
.tips-card {
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tips-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.tips-card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 120, 215, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tips-card-icon img {
    width: 28px;
    height: 28px;
}

.tips-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tips-card-content h3 {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.tips-card-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.tips-card-link {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
    transition: color 0.2s;
}

.tips-card:hover .tips-card-link {
    color: #005a9e;
}

/* Scrollbar Styling */
.tips-content::-webkit-scrollbar {
    width: 10px;
}

.tips-content::-webkit-scrollbar-track {
    background: transparent;
}

.tips-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.tips-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
    background-clip: content-box;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tips-sidebar {
        background-color: rgba(32, 32, 32, 0.5);
    }

    .tips-nav-item:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .tips-nav-item.active {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .tips-hero {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .tips-hero-text h1 {
        color: #f1f5f9;
    }

    .tips-hero-text p {
        color: #94a3b8;
    }

    .tips-card-content p {
        color: #94a3b8;
    }

    .tips-search-input {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .tips-search-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .tips-alert {
        background-color: rgba(0, 120, 215, 0.15);
    }

    .tips-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        background-clip: content-box;
    }

    .tips-content::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.3);
        background-clip: content-box;
    }
}