/* public/assets/css/style.css */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #77aaff;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

.main-nav .user-info {
    color: #eee;
    margin-left: 20px;
    font-size: 0.9em;
}

.main-nav .user-info a {
    color: #77aaff;
    text-decoration: none;
}

/* Main Content */
.content {
    padding: 20px 0;
    min-height: calc(100vh - 150px); /* Adjust based on header/footer height */
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

/* Forms */
form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

form input[type="file"] {
    padding: 5px 0;
}

form button[type="submit"] {
    background: #77aaff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background: #5588cc;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #eee;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Alerts */
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Utility */
.text-center {
    text-align: center;
}
.button {
    display: inline-block;
    background: #77aaff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 5px;
    margin-bottom: 5px;
}
.button:hover {
    background: #5588cc;
}
.button.danger {
    background-color: #dc3545;
}
.button.danger:hover {
    background-color: #c82333;
}
.article-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    align-items: flex-start;
}

.article-item img {
    max-width: 150px;
    height: auto;
    margin-right: 20px;
    border-radius: 5px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.article-details {
    flex-grow: 1; /* Allow details to take remaining space */
}

.article-details h3 {
    margin-top: 0;
    color: #0056b3;
}

.article-details p {
    font-size: 0.9em;
    color: #666;
}

.article-details .category,
.article-details .year,
.article-details .views {
    display: inline-block;
    background-color: #e9e9e9;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
}

.article-details .abstract {
    margin-top: 10px;
    font-size: 0.95em;
}

.article-details .actions {
    margin-top: 10px;
}

/* Footer */
.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
}


