* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;                           
}
@media (min-width: 1024px) {
	body {
		padding-top: 80px;
	}
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	border-radius: 15px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	overflow: hidden;
}

.header {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
	color: white;
	padding: 30px;
	text-align: center;
}

.header h1 {
	font-size: 2.5em;
	margin-bottom: 10px;
}

.header p {
	font-size: 1.1em;
	opacity: 0.9;
}

.search-form {
	padding: 30px;
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
}

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

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #2c3e50;
}

.form-group input {
	width: 100%;
	padding: 12px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s;
}

.form-group input:focus {
	outline: none;
	border-color: #667eea;
}

.form-row {
	display: flex;
	gap: 20px;
}

.form-row .form-group {
	flex: 1;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 30px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s;
}

.btn-primary:hover {
	transform: translateY(-2px);
}

.error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 8px;
	margin: 20px 30px;
	border: 1px solid #f5c6cb;
}

.report {
	padding: 30px;
}

.metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.metric-card {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 25px;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.metric-value {
	font-size: 2.5em;
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 5px;
}

.metric-label {
	color: #6c757d;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.chart-container {
	background: white;
	padding: 25px;
	border-radius: 12px;
	margin-bottom: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.chart-title {
	font-size: 1.5em;
	margin-bottom: 20px;
	color: #2c3e50;
}

.publications-list {
	background: white;
	border-radius: 12px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.publication-item {
	padding: 15px;
	border-bottom: 1px solid #e9ecef;
	transition: background-color 0.2s;
}

.publication-item:hover {
	background-color: #f8f9fa;
}

.publication-item:last-child {
	border-bottom: none;
}

.publication-title {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 5px;
}

.publication-meta {
	color: #6c757d;
	font-size: 0.9em;
}

.citation-count {
	background: #667eea;
	color: white;
	padding: 3px 8px;
	border-radius: 15px;
	font-size: 0.8em;
	font-weight: 600;
}

.year-chart {
	display: flex;
	align-items: end;
	gap: 10px;
	height: 200px;
	padding: 20px 0;
}

.year-bar {
	background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
	border-radius: 4px 4px 0 0;
	min-width: 40px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.year-label {
	margin-top: 10px;
	font-size: 0.8em;
	color: #6c757d;
	writing-mode: vertical-rl;
	text-orientation: mixed;
}

.bar-value {
	position: absolute;
	top: -25px;
	font-size: 0.8em;
	font-weight: 600;
	color: #2c3e50;
}

/* Additional CSS for Author Selection Feature */

/* Author Selection Container */
.author-selection {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.author-selection h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 600;
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Author Card Styling */
.author-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.author-card:hover {
    border-color: #007bff;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.author-card:hover::before {
    opacity: 1;
}

/* Author Info */
.author-info h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.3;
}

.author-detail {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.4;
}

.author-detail strong {
    color: #495057;
    font-weight: 600;
}

/* Sample Works Styling */
.sample-works {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.sample-works ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.sample-works li {
    margin-bottom: 5px;
    color: #6c757d;
    line-height: 1.4;
}

/* Button Styling Updates */
.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Form styling updates */
.search-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Select and Input Styling */
select, input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

select:focus, input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Error and Debug Messages */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
    font-size: 14px;
}

/* Report Styling Updates */
.report {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.report h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.metric-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Container */
.chart-container {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.chart-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

/* Year Chart */
.year-chart {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    padding: 20px 0;
    overflow-x: auto;
}

.year-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    position: relative;
}

.year-bar::before {
    content: '';
    width: 30px;
    height: var(--height, 50px);
    background: linear-gradient(to top, #007bff, #0056b3);
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.year-bar:hover::before {
    background: linear-gradient(to top, #0056b3, #004085);
}

.bar-value {
    position: absolute;
    top: -25px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.year-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    margin-top: 5px;
}

/* Publications List */
.publications-list {
    margin-top: 30px;
}

.publication-item {
    padding: 20px;
    border-left: 4px solid #007bff;
    background: #f8f9fa;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.publication-item:hover {
    background: #e9ecef;
    border-left-color: #0056b3;
    transform: translateX(5px);
}

.publication-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-meta {
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.4;
}

.citation-count {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .year-chart {
        gap: 5px;
    }
    
    .year-bar {
        min-width: 40px;
    }
    
    .author-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form, .author-selection, .report {
        padding: 20px;
        margin: 10px 0;
    }
    
    .container {
        padding: 10px;
    }
}