/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #2ecc71;
    --info-color: #3498db;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #d5dbdb;
    color: var(--dark-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    color: white;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 100px;
    width: 190px;
    align-items: center;
}

.logo img {
    height: 10px; /* Increased from 100px to 120px */
    margin-right: 12px;
    width: 200px; /* Maintains aspect ratio */
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.user-menu {
    position: relative;
}

.user-menu .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 150px;
    display: none;
    z-index: 10;
}

.user-menu:hover .dropdown {
    display: block;
}

.user-menu .dropdown li {
    margin: 0;
}

.user-menu .dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--dark-color);
}

.user-menu .dropdown a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('home-intellex.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Recent Papers Section */
.recent-papers {
    padding: 60px 0;
}

.recent-papers h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.paper-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.paper-type {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0 0 var(--border-radius) 0;
}

.paper-body {
    padding: 20px;
}

.paper-body h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.paper-body .lecturer {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.paper-body .year-semester {
    color: #666;
    font-size: 0.9rem;
}

.paper-actions {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-favorite {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.btn-favorite.favorited, .btn-favorite:hover {
    color: var(--danger-color);
}

.center {
    text-align: center;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.auth-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 500px;
}

.auth-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.8rem;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember-forgot div {
    display: flex;
    align-items: center;
}

.remember-forgot input {
    width: auto;
    margin-right: 5px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
}

.terms label {
    display: flex;
    align-items: center;
}

.terms input {
    width: auto;
    margin-right: 10px;
}

/* Dashboard */
.dashboard-container {
    padding: 40px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.dashboard-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.dashboard-card h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.dashboard-card h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.uploads-list, .favorites-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.upload-item, .favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.upload-info, .favorite-info {
    flex: 1;
}

.upload-info h3, .favorite-info h3 {
    margin-bottom: 5px;
}

.upload-actions, .favorite-actions {
    display: flex;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Upload Page */
.upload-container {
    padding: 40px 0;
}

.form-section {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.form-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Browse Page */
.browse-container {
    padding: 40px 0;
}

.browse-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.filters-sidebar {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.filters-sidebar h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 5px 10px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 10px;
}

.paper-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.paper-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--light-color);
}

.paper-year {
    font-size: 0.8rem;
    color: #666;
}

.faculty-dept {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.paper-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
}

.paper-stats i {
    margin-right: 5px;
}

/* Admin Panel */
.admin-container {
    padding: 20px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-card {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.admin-card h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--light-color);
    font-weight: 600;
}

table tr:hover {
    background-color: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
}

.footer-section ul li a:hover {
    color: white;
}

.socials a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
    color: #bbb;
}

.socials a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}