/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Inter", Arial, sans-serif;
}

body,
html {
	height: 100%;
	background-color: #f4f7fa;
	color: #333;
}

/* Header */
header {
	width: 100%;
	height: 60px;
	background: linear-gradient(90deg, #006688, #0099cc);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 25px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header .logo {
	font-size: 1.5rem;
	font-weight: 700;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-right .user-name {
	font-weight: 500;
}

header button {
	padding: 8px 14px;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.logout-btn {
	background-color: #fff;
	color: #006688;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logout-btn:hover {
	background-color: #f1f1f1;
	transform: translateY(-2px);
}

.menu-toggle {
	display: none;
	font-size: 1.8rem;
	color: #fff;
	background: transparent;
}

/* Main Layout */
main {
	display: flex;
	margin-top: 60px;
}

/* Sidebar */
.dashboard-menu {
	width: 230px;
	background-color: #004d66;
	color: #fff;
	min-height: calc(100vh - 60px);
	padding-top: 25px;
	position: fixed;
	top: 60px;
	left: 0;
	transition: transform 0.3s ease;
	border-top-right-radius: 12px;
	z-index: 999;
}

.dashboard-menu ul {
	list-style: none;
}

.dashboard-menu ul li {
	margin-bottom: 12px;
}

.dashboard-menu ul li a {
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: 14px 20px;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.dashboard-menu ul li a.active,
.dashboard-menu ul li a:hover {
	background-color: #0099cc;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Content Area */
.dashboard-content {
	flex: 1;
	margin-left: 230px;
	padding: 35px;
}

/* Section Header */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
}

.section-header h2 {
	font-size: 1.5rem;
	color: #004d66;
	font-weight: 600;
}

.section-header button {
	background-color: #0099cc;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.section-header button:hover {
	background-color: #006688;
	transform: translateY(-2px);
}

/* Cards */
.card {
	background-color: #fff;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card h3 {
	font-size: 1.25rem;
	color: #004d66;
	margin-bottom: 8px;
}

.card p {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #555;
}

/* Buttons */
button,
.table-actions button {
	transition: all 0.3s ease;
}

button:disabled,
.table-actions button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

table thead {
	background-color: #0099cc;
	color: #fff;
}

table th,
table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eaeaea;
}

table tr:nth-child(even) {
	background-color: #f7f9fb;
}

/* Modals */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: #fff;
	padding: 25px;
	border-radius: 12px;
	width: 95%;
	max-width: 550px;
	position: relative;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
	margin-bottom: 18px;
	color: #004d66;
	font-weight: 600;
}

.modal-content .close {
	position: absolute;
	top: 12px;
	right: 18px;
	font-size: 1.4rem;
	font-weight: bold;
	color: #555;
	cursor: pointer;
}

.modal-content form input,
.modal-content form select,
.modal-content form button,
.modal-content form .rich-editor {
	width: 100%;
	margin-bottom: 12px;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #ccc;
	font-size: 1rem;
}

.modal-content form button {
	background-color: #0099cc;
	color: #fff;
	font-weight: 600;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-content form button:hover {
	background-color: #006688;
	transform: translateY(-2px);
}

/* Rich Editor */
.rich-editor {
	min-height: 120px;
	border: 1px solid #ccc;
	padding: 12px;
	border-radius: 8px;
	background-color: #fdfdfd;
	overflow-y: auto;
}

.rich-editor:focus {
	border-color: #0099cc;
	box-shadow: 0 0 5px rgba(0, 153, 204, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
	.dashboard-menu {
		width: 200px;
	}
	.dashboard-content {
		margin-left: 200px;
		padding: 30px;
	}
}

@media (max-width: 768px) {
	#menuToggle {
		display: inline-block;
	}
	.dashboard-menu {
		transform: translateX(-100%);
		width: 200px;
	}
	.dashboard-menu.show {
		transform: translateX(0);
	}
	.dashboard-content {
		margin-left: 0;
		padding: 25px;
	}
}

@media (max-width: 576px) {
	.dashboard-menu {
		width: 100%;
		height: 100vh;
	}
	.dashboard-content {
		margin-left: 0;
		padding: 15px;
	}
	header {
		flex-direction: column;
		height: auto;
		padding: 12px;
	}
	header h1 {
		margin-bottom: 6px;
		font-size: 1.4rem;
	}
}
/* Modern Buttons */
button,
.section-header button,
.modal-content form button {
	background: linear-gradient(90deg, #0099cc, #006688);
	color: #fff;
	border: none;
	padding: 10px 18px;
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:hover,
.section-header button:hover,
.modal-content form button:hover {
	background: linear-gradient(90deg, #006688, #0099cc);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Grid layout for Job/Project/Author lists */
#jobsList,
#projectsList,
#authorsList {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

/* Card styling */
.card {
	background-color: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
	font-size: 1.25rem;
	color: #004d66;
	margin-bottom: 8px;
}

.card p {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #555;
}

.card .actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.card .actions button {
	flex: 1;
}

/* Project Cards */
#projectsList .card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projectsList .card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image container with cover */
.project-image-container {
	width: 100%;
	height: 180px; /* fixed height for uniform cards */
	overflow: hidden;
}

.project-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* ensures the image covers container */
	display: block;
}

/* Card body */
.project-body {
	padding: 15px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.project-body h3 {
	font-size: 1.2rem;
	color: #004d66;
	margin: 0;
}

.project-body p {
	font-size: 0.95rem;
	color: #555;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.project-body small {
	color: #888;
	font-size: 0.8rem;
}

/* Buttons at bottom */
.project-body .actions {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	gap: 10px;
}

.project-body .actions button {
	flex: 1;
	padding: 8px 0;
	border-radius: 8px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-body .actions button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}
