/* Assignment2.php specific styles - Weekly View Enhancement */

/* Weekly Assignments View */
.weekly-assignments {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	max-width: 100%;
}

.weekly-assignment-card {
	background: white;
	border-radius: 5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weekly-assignment-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.weekly-card-header {
	padding: 1rem;
	color: white;
}

.weekly-header-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.weekly-subject-info {
	display: flex;
	align-items: start;
	gap: 0.75rem;
}

.weekly-subject-info h3 {
	font-size: 1rem;
	margin: 0;
}

.weekly-subject-info p {
	font-size: 0.8rem;
	margin: 0;
}

.weekly-date-range {
	font-weight: 600;
	font-size: 0.9rem;
	opacity: 0.95;
}

.weekly-card-content {
	padding: 1rem;
	background: white;
}

.daily-assignments {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.daily-assignment-item {
	display: flex;
	align-items: start;
	gap: 0.5rem;
}

.day-name {
	font-weight: 600;
	color: #555;
	min-width: 82px;
	font-size: 12px;
	text-transform: uppercase;
}

.assignment-link {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 13px;
	line-height: 18px;
}

.assignment-link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.draft-indicator {
	background: #fef3c7;
	color: #d97706;
	padding: 1px 5px;
	border-radius: 0.375rem;
	font-size: 10px;
	font-weight: 700;
	word-break: keep-all;
}

/* View Mode Toggle Styles */
.view-toggle {
	display: flex;
	background: #f3f4f6;
	border-radius: 8px;
	padding: 4px;
}

.view-toggle button {
	padding: 8px 16px;
	border: none;
	background: transparent;
	border-radius: 6px;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.2s ease;
}

.view-toggle button.active {
	background: white;
	color: #374151;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.layout-toggle {
	display: flex;
	background: #f3f4f6;
	border-radius: 8px;
	padding: 4px;
	margin-left: 1rem;
}

.layout-toggle button {
	padding: 8px 12px;
	border: none;
	background: transparent;
	border-radius: 6px;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.2s ease;
}

.layout-toggle button.active {
	background: white;
	color: #374151;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Filter visibility */
.weekly-filter {
	display: none;
}

.daily-filter {
	display: flex;
}