:root {
    --primary-blue: #00467f;
    --accent-orange: #e67e22;
    --scholar-blue: #4285f4;
    --bg-gray: #f0f2f5;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-gray);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: #333;
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.tab-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* Containers */
.container {
    background: white;
    width: 100%;
    max-width: 550px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}

.container.active {
    display: block;
}

h1 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-align: center;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 25px 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.grid-inputs {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: opacity 0.2s;
}

.btn-search { background-color: var(--primary-blue); }
.btn-citation { background-color: var(--accent-orange); width: 100%; }
.btn-scholar { background-color: var(--scholar-blue); }

.btn:hover { opacity: 0.9; }

/* Tool Items */
.tool-list { margin-top: 20px; }

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

.tool-meta h3 { margin: 0; font-size: 1rem; }
.tool-meta p { margin: 4px 0 0; font-size: 0.8rem; color: #777; }

.link-btn {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    background: #eef2f6;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* RSS Specific Styles */
.rss-section {
    margin-bottom: 25px;
}

.rss-header {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-item {
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: transform 0.1s;
}

.feed-item:hover {
    background: #fff;
    border-color: var(--primary-blue);
    transform: translateX(3px);
}

.feed-item a {
    text-decoration: none;
    color: #222;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.feed-item .date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.loading-text {
    text-align: center;
    color: #666;
    font-style: italic;
}




/* Author Directory Styles */
.author-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.author-card {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}

.author-card:hover {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.author-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #222;
}

.author-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f1f3f5;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.author-link:hover {
    background-color: var(--primary-blue);
    color: white;
}

.hidden { display: none; }

