/* General Body/Font (assuming site-wide, but included for context) */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0F0F0F;
    color: #E2E8F0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dashboard Widget Container */
.mathcrave-dashboard-container {
    background-color: #1A1A1A; /* Darker gray for cards */
    border: 1px solid #262626; /* Subtle dark gray border */
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem; /* Spacing below the widget */
    color: #E2E8F0; /* Default text color within widget */
}

/* Widget Title */
.mathcrave-dashboard-container h2.widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF4D6D; /* Accent color for widget title */
    margin-bottom: 1rem;
    text-align: center;
}

/* Section Headings within Dashboard */
.mathcrave-dashboard-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E2E8F0; /* White for section titles */
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #262626;
    padding-bottom: 0.5rem;
}

/* User ID Display */
.mathcrave-dashboard-user-id {
    font-size: 0.85rem;
    color: #A0A0A0;
    text-align: center;
    margin-bottom: 1rem;
    word-break: break-all; /* Ensure long IDs wrap */
}

/* List Styles (Pages Visited, Most Visited, Inputs) */
.mathcrave-dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mathcrave-dashboard-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to start for multi-line content */
    padding: 0.75rem 0;
    border-bottom: 1px solid #262626;
    font-size: 0.95rem;
}

.mathcrave-dashboard-list li:last-child {
    border-bottom: none;
}

.mathcrave-dashboard-list li a {
    color: #6EE7B7; /* Green accent for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    flex-grow: 1;
    margin-right: 10px;
    text-align: left;
    word-break: break-word; /* Ensure long URLs/titles wrap */
}

.mathcrave-dashboard-list li a:hover {
    color: #5ACD9E; /* Darker green on hover */
    text-decoration: underline;
}

.mathcrave-dashboard-list .mathcrave-dashboard-timestamp,
.mathcrave-dashboard-list .mathcrave-dashboard-views {
    font-size: 0.8rem;
    color: #A0A0A0;
    white-space: nowrap; /* Prevent timestamp/views from wrapping */
    flex-shrink: 0; /* Prevent timestamp/views from shrinking */
}

.mathcrave-dashboard-list .mathcrave-dashboard-views {
    background-color: #262626;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
}

/* Input specific styling */
.mathcrave-dashboard-input-item .mathcrave-dashboard-input-value {
    color: #C0C0C0;
    font-style: italic;
    margin-top: 5px;
    font-size: 0.85rem;
}

/* Loading state */
.mathcrave-dashboard-loading {
    text-align: center;
    color: #A0A0A0;
    padding: 1rem 0;
}