/* General Layout */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    color: #2c3e50;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px; /* Increased width */
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-header a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1f2937;
    line-height: 1.3;
}

.sidebar-header .title {
    font-family: 'FangSong', '仿宋', 'STFangsong', '华文仿宋', serif;
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap; /* Prevent wrapping */
}

.sidebar-header .subtitle {
    font-family: Arial, sans-serif;
    font-size: 1rem; /* Increased size */
    font-weight: 400;
    color: #6b7280;
    margin-top: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
    color: #4b5563;
    text-decoration: none;
}

.sidebar-nav a:hover {
    background-color: #f3f4f6;
}

.sidebar-nav a.active {
    background-color: #e0f2fe;
    color: #0c4a6e;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    height: 48px;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(4px);
    padding: 0 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.page-title h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.page-subtitle-container {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid #a5b4fc; /* A softer purple/blue */
    font-style: italic;
}

.page-subtitle-container p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #4b5563; /* Darker text for better readability */
}

#date-info {
    font-style: normal;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

/* Menu Button for Mobile */
.menu-button {
    display: none; /* Hidden by default on large screens */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #1f2937;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999; /* Below sidebar, above content */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-overlay.visible {
    display: block;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px; /* Hide off-screen */
        top: 0;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
    }

    .sidebar.visible {
        left: 0; /* Slide in */
    }

    .main-wrapper {
        width: 100%;
    }

    .menu-button {
        display: block; /* Show on small screens */
    }

    .main-header {
        justify-content: flex-start;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .page-subtitle-container p {
        font-size: 0.9rem;
    }

    #date-info {
        font-size: 0.8rem;
    }
}

#quote-info .cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #333;
    animation: blink 0.7s infinite;
    margin-left: 3px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Re-styling the old cards */
.tools-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 2rem;
}

.tool-card {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

.tool-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
}

.tool-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Status indicator from old design */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.status-indicator.online {
    background: #2ecc71;
}


