/* Reset and base styles */
* {
    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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    width: 100%;
    background-color:#091731;
    gap: 6px;
}

.logo {
    margin-right: 0;
    flex-shrink: 0;
    margin-left: 27px; /* Move logo to the right */
}

.logo img {
    height: 39px; /* smaller logo */
    width: auto;
    display: block;
}

.header-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

header h1 {
    color: #fff;
    background-color: #091731;
    font-size: 28px;
    margin: 0;
    flex-shrink: 0;
}

#user-info {
    display: flex;
    align-items: center;
    font-size: 16px;
    gap: 10px;
    flex-shrink: 0;
}

#username {
    color: #fff;
    margin-left: 8px;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    position: relative;
    display: inline-block;
}

.notification-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

.notification-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 300px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
}

.notification-dropdown-content.show {
    display: block;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.notification-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.notification-list {
    padding: 10px 0;
}

.notification-list .notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

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

.notification-list .notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.notification-list .notification-content {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.notification-list .notification-time {
    color: #999;
    font-size: 11px;
    margin-top: 5px;
}

.notification-list .no-notifications {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}



/* Main content styles */
main {
	min-height: calc(100vh - 200px); /* Account for header and footer */
	max-height: calc(100vh - 200px);
	overflow: hidden;
}

.section {
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
	padding: 20px 20px;
	margin-bottom: 15px;
	min-height: 200px;
	width: 100%;
	overflow: hidden;
}

.section h2 {
	color: #000000;
	margin-bottom: 10px;
	font-size: 18px;
}

.section h2[data-translate="select-platform"],
.section h2[data-translate="announcements"],
.section h2[data-translate="dining-menu"],
#notification-section h2,
.section h2[data-translate="notifications"] {
    color: #c0392b !important;
}

.section p {
	margin-bottom: 10px;
	font-size: 14px;
}

/* Project and Platform cards */
.projects-container, .announcements-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 25px;
	width: 100%;
}

.platforms-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 25px;
	width: 100%;
	height: 540px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 10px;
}

/* Custom scrollbar for platforms container */
.platforms-container::-webkit-scrollbar {
	width: 8px;
}

.platforms-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.platforms-container::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.platforms-container::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Dark mode scrollbar styling for platforms list */
body.dark-mode .platforms-container {
	scrollbar-color: #243b6b #060e1e; /* thumb track */
	scrollbar-width: thin;
}

body.dark-mode .platforms-container::-webkit-scrollbar {
	width: 8px;
}

body.dark-mode .platforms-container::-webkit-scrollbar-track {
	background: #060e1e;
	border-left: 1px solid #1a2a4a;
}

body.dark-mode .platforms-container::-webkit-scrollbar-thumb {
	background-color: #243b6b;
	border-radius: 6px;
	border: 2px solid #060e1e;
}

body.dark-mode .platforms-container::-webkit-scrollbar-thumb:hover {
	background-color: #2e4a80;
}

.dining-menu-container {
	margin-top: 15px;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.dining-menu-slider {
	display: flex;
	transition: transform 0.3s ease;
	width: 100%;
}

.dining-menu-slide {
	min-width: 100%;
	max-width: 100%;
	flex-shrink: 0;
	flex-basis: 100%;
	width: 100%;
	box-sizing: border-box;
}

.dining-menu-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(20, 40, 80, 0);
	color: #c0392b;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	z-index: 10;
	transition: background 0.2s ease;
}

.dining-menu-nav:hover {
	background: rgba(20, 40, 80, 0);
}

.dining-menu-nav.prev {
	left: 8px;
}

.dining-menu-nav.next {
	right: 8px;
}

.dining-menu-nav:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dining-menu-dots {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 10px;
}

.dining-menu-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dining-menu-dot.active {
	background: #142850;
}

/* Announcements slider styles */
.announcements-container {
	margin-top: 15px;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.announcements-slider {
	display: flex;
	transition: transform 0.3s ease;
	width: 100%;
}

.announcements-slide {
	min-width: 100%;
	max-width: 100%;
	flex-shrink: 0;
	flex-basis: 100%;
	width: 100%;
	box-sizing: border-box;
}

.announcements-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(20, 40, 80, 0);
	color: #c0392b;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	z-index: 10;
	transition: background 0.2s ease;
}

.announcements-nav:hover {
	background: rgba(20, 40, 80, 0);
}

.announcements-nav.prev {
	left: 8px;
}

.announcements-nav.next {
	right: 8px;
}

.announcements-nav:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.announcements-dots {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 10px;
}

.announcements-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background 0.2s ease;
}

.announcements-dot.active {
	background: #142850;
}

/* 2-column layout: platforms on left, dining/announcements on right */
.sections-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-top: 10px;
	width: 100%;
	padding: 0 20px;
	height: calc(100vh - 250px);
	overflow: hidden;
	align-items: start;
}

/* Hide dining menu for students */
.sections-container.student-view #dining-menu-section {
	display: none;
}

/* When dining menu is hidden, make announcements take full right side */
.sections-container.student-view .right-side-container {
	justify-content: flex-start;
}

/* Right side container for dining and announcements */
.right-side-container {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

@media (max-width: 1400px) {
	.sections-container {
		gap: 25px;
	}
}

/* Stack to single column on narrower screens */
@media (max-width: 1000px) {
	.sections-container {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	#announcements-section {
		grid-column: auto;
	}
}

/* Notification list container - grid layout like platforms */
#notification-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

#notification-list p {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-style: italic;
}

.project-card, .platform-card, .announcement-card {
	background-color: #f9f9f9;
	border-radius: 12px;
	padding: 15px 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	min-height: 120px;
	width: 100%;
}

/* Make platform cards wider for button layout */
.platform-card {
	padding: 15px 20px;
}

/* Platform card button container */
.platform-card .btn-container {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	justify-content: flex-start;
}

/* Ensure direct access button is visible */
.platform-card .btn-container a[href="https://lms0.final.edu.tr/"] {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-color: #142850 !important;
	color: white !important;
	padding: 8px 15px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	margin-left: 10px !important;
	font-size: 12px !important;
}

/* Ensure Leave and Absence direct access button is visible */
.platform-card .btn-container a[href="https://leave.final.digital/"] {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-color: #142850 !important;
	color: white !important;
	padding: 8px 15px !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	margin-left: 10px !important;
	font-size: 12px !important;
}

/* Make Access Platform button match Direct Access button size */
.platform-card .btn-container .btn {
	padding: 8px 15px !important;
	font-size: 12px !important;
}

.project-card:hover, .platform-card:hover, .announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card h3, .platform-card h3, .announcement-card h3 {
	color: #000000;
	margin-bottom: 8px;
	font-size: 16px;
}

.project-card p, .platform-card p, .announcement-card p {
	margin-bottom: 8px;
	color: #666;
	font-size: 13px;
	line-height: 1.3;
}

/* Announcement card specific styles */
.announcement-card {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.announcement-card .announcement-date {
	font-size: 11px;
	color: #888;
	margin-bottom: 0;
	font-style: italic;
}

.announcement-card .announcement-content {
	display: none;
}

.announcement-card .announcement-author {
	display: none;
}

/* Dining menu card specific styles */
.dining-menu-card .meal-section {
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.dining-menu-card .meal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dining-menu-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 15px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dining-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dining-menu-card h3 {
    color: #000000;
    margin-bottom: 8px;
    font-size: 16px;
}

.dining-menu-card p {
    margin-bottom: 8px;
    color: #666;
    font-size: 13px;
    line-height: 1.3;
}

.dining-menu-card .meal-section h4 {
    color:#c0392b;
    margin-bottom: 6px;
    font-size: 14px;
}

.dining-menu-card .meal-section p {
    margin-bottom: 4px;
    line-height: 1.3;
    font-size: 13px;
}

.dining-menu-card .meal-section small {
    color: #888;
    font-size: 11px;
    font-style: italic;
}

/* Notification cards - matching platform card design */
.notification-card {
    background-color: #f9f9f9 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin-bottom: 15px !important;
    min-height: 100px !important; /* Ensure minimum height */
    display: block !important;
}

.notification-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.notification-card h3 {
    color: #000000 !important;
    margin-bottom: 30px !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.notification-card p {
    margin-bottom: 15px !important;
    color: #666 !important;
    line-height: 0.9 !important;
}

.notification-card a {
    display: inline-block !important;
    background-color:  #142850 !important;
    color: white !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease !important;
}

.notification-card a:hover {
    background-color: #142850 !important;
}

/* Login form styles */
.login-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 450px;
    width: 100%;
    background-color: rgb(255, 255, 255);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    font-family: 'Poppins', sans-serif;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #777;
    font-size: 16px;
}

.login-header .logo img {
    height: 74px !important;
    width: auto;
    display: block;
    margin: 0 auto;
}

.login-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.login-form label {
    font-weight: bold !important;
}

.input-wrapper {
    position: relative;
    font-weight: bold !important;
}



.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(74, 108, 247, 0);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
    background-color: #fff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

/* Custom checkbox styles for recurring menu */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #eee;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #28a745;
    border-color: #28a745;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/*.forgot-password {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}*/

.form-group .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color:  #142850;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color:  #142850;
    transform: translateY(-2px);
}

.error-message {
    color: #e74c3c;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.login-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 30px;
    border: 1px solid #eee;
}

.login-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.login-info a {
    color:  #c0392b;
    text-decoration: none;
    font-weight: 500;
}

.login-info a:hover {
    text-decoration: underline;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #142850;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #142850;
}

.btn-primary {
    background-color: #142850;
}

.btn-primary:hover {
    background-color:  #142850;
    transform: translateY(-2px);
}

.btn-logout {
    background-color: #e74c3c !important;
    color: #fff !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0);
    font-weight: bold;
    z-index: 20;
    margin-left: 10px;
}

.btn-logout:hover {
    background-color: #c0392b !important;
    color: #fff !important;
    border: 2px solid rgba(192, 57, 43, 0);
}

/* Footer styles */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-top: 0px solid #ddd;
    color: #142850;
    font-size: 20px;
    background: transparent;
    z-index: 5;
    transition: color 0.3s;
}

body.dark-mode footer {
    color: #fff;
}

body.login-page footer {
    color: #fff;
}

body.login-page.dark-mode footer {
    color: #f0f0f0;
}

/* Language selector styles */
.language-selector {
    position: relative;
    margin-right: 0;
    top: 0;
}

/* Language selector positioning for login page */
body.login-page .language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Login notifications */
.login-notifications {
    margin-bottom: 1rem;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 101;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
}

.language-option:hover {
    background-color: #f5f5f5;
}

/* User dropdown styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background:#c0392b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.user-dropdown-btn:hover {
    background: #c0392b;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0);
    border-radius: 8px;
    z-index: 100;
    padding: 12px 0;
}

.user-dropdown:hover .user-dropdown-content,
.user-dropdown.show .user-dropdown-content {
    display: block;
}

.user-dropdown-content button,
.user-dropdown-content .language-btn,
.user-dropdown-content .theme-btn {
    width: 90%;
    margin: 8px auto;
    display: block;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 0;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-dropdown-content button:hover,
.user-dropdown-content .language-btn:hover,
.user-dropdown-content .theme-btn:hover {
    background: #e0e0e0;
}

.user-dropdown-content .btn-logout {
    background: #e74c3c !important;
    color: #fff !important;
    border: none;
    margin-top: 8px;
}

.user-dropdown-content .btn-logout:hover {
    background: #c0392b !important;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Login page background image */
body.login-page {
    background: url('../img/fiu1.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh; /* Ensures the element takes full viewport height */
    margin: 0; /* Remove default browser margin for cleaner coverage */
}

/* Dark Mode Styles */
body.dark-mode {
    background-color:#091731;;
    color: #f0f0f0;
}

/* Header styles - dark mode */
body.dark-mode header {
    border-bottom-color: #060e1e;
}

body.dark-mode header h1,
body.dark-mode #username {
    color: #f0f0f0;
}

/* Section styles - dark mode */
body.dark-mode .section {
    background-color: #060e1e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section h2 {
    color: #f0f0f0;
}

/* Platform cards - dark mode */
body.dark-mode .platform-card,
body.dark-mode .announcement-card,
body.dark-mode .dining-menu-card {
    background-color:#060e1e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .platform-card h3,
body.dark-mode .platform-card p,
body.dark-mode .announcement-card h3,
body.dark-mode .announcement-card p,
body.dark-mode .dining-menu-card h3,
body.dark-mode .dining-menu-card p {
    color: #f0f0f0;
}

body.dark-mode .platform-card p,
body.dark-mode .announcement-card p {
    color: #ccc;
}

body.dark-mode .announcement-card .announcement-date {
    color: #aaa;
}

body.dark-mode .announcement-card .announcement-author {
    color: #ccc;
}

/* Dining menu card - dark mode */
body.dark-mode .dining-menu-card .meal-section {
    border-bottom-color: #060e1e;
}

body.dark-mode .dining-menu-card .meal-section h4 {
    color: #ff6b6b;
}

body.dark-mode .dining-menu-card .meal-section small {
    color: #aaa;
}

/* Dark mode for dining menu modal */
body.dark-mode #dining-menu-modal .modal-content {
    background: #060e1e !important;
    color: #f0f0f0 !important;
}

body.dark-mode #dining-menu-modal h2 {
    color: #f0f0f0 !important;
}

body.dark-mode #dining-menu-modal .meal-section {
    border-bottom-color: #555 !important;
}

body.dark-mode #dining-menu-modal .meal-section h3 {
    color: #ff6b6b !important;
}

body.dark-mode #dining-menu-modal .meal-section small {
    color: #aaa !important;
}

/* Notification cards - dark mode */
body.dark-mode .notification-card {
    background-color: #060e1e !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .notification-card h3 {
    color: #060e1e !important;
}

body.dark-mode .notification-card p {
    color: #060e1e!important;
}

body.dark-mode .notification-card a {
    background-color: #060e1e !important;
}

body.dark-mode .notification-card a:hover {
    background-color:  #060e1e !important;
}

/* Notification section - dark mode */
body.dark-mode #notification-section {
    background: #060e1e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Notification dropdown - dark mode */
body.dark-mode .notification-dropdown-content {
    background-color: #060e1e;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

/* Dark mode scrollbar styling for notification dropdown */
body.dark-mode .notification-dropdown-content {
    scrollbar-color: #243b6b #060e1e; /* thumb track */
    scrollbar-width: thin;
}

body.dark-mode .notification-dropdown-content::-webkit-scrollbar {
    width: 10px;
}

body.dark-mode .notification-dropdown-content::-webkit-scrollbar-track {
    background: #060e1e;
    border-left: 1px solid #1a2a4a;
}

body.dark-mode .notification-dropdown-content::-webkit-scrollbar-thumb {
    background-color: #243b6b;
    border-radius: 8px;
    border: 2px solid #060e1e;
}

body.dark-mode .notification-dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #2e4a80;
}

body.dark-mode .notification-header {
    background: #142850;
    border-bottom: 1px solid #444;
}

body.dark-mode .notification-header h3 {
    color: #f0f0f0;
}

body.dark-mode .notification-list .notification-item {
    border-bottom: 1px solid #444;
}

body.dark-mode .notification-list .notification-item:hover {
    background-color: #142850;
}

body.dark-mode .notification-list .notification-title {
    color: #f0f0f0;
}

body.dark-mode .notification-list .notification-content {
    color: #ccc;
}

body.dark-mode .notification-list .notification-time {
    color: #999;
}

body.dark-mode .notification-list .no-notifications {
    color: #ccc;
}

/* User dropdown - dark mode */
body.dark-mode .user-dropdown-content {
    background: #060e1e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .user-dropdown-content button,
body.dark-mode .user-dropdown-content .language-btn,
body.dark-mode .user-dropdown-content .theme-btn {
    background: #060e1e;
    color: #f0f0f0;
    border-color: #060e1e;
}

body.dark-mode .user-dropdown-content button:hover,
body.dark-mode .user-dropdown-content .language-btn:hover,
body.dark-mode .user-dropdown-content .theme-btn:hover {
    background: #060e1e;
}

/* Language dropdown - dark mode */
body.dark-mode .language-dropdown {
    background-color: #060e1e;
    border-color: #444;
}

body.dark-mode .language-option {
    color: #f0f0f0;
}

body.dark-mode .language-option:hover {
    background-color: #060e1e;
}



body.login-page #username {
    color: #2c3e50 !important;
}

/* LMS Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    margin: 40px auto;
    padding: 32px;
    position: relative;
    color: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #c0392b;
}

.modal-title {
    margin-bottom: 24px;
    font-size: 1.5em;
    color: #142850;
}

#lms-subplatforms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #142850 #f0f0f0;
}

#lms-subplatforms-list::-webkit-scrollbar {
    width: 8px;
}

#lms-subplatforms-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#lms-subplatforms-list::-webkit-scrollbar-thumb {
    background: #142850;
    border-radius: 4px;
}

#lms-subplatforms-list::-webkit-scrollbar-thumb:hover {
    background: #0f1f3a;
}

.lms-subplatform-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-height: 50px;
}

.lms-subplatform-card span {
    flex: 1;
    margin-right: 15px;
    font-weight: 500;
}

.lms-access-btn {
    background-color: #142850;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
    min-width: 60px;
}
.lms-access-btn:hover {
    background-color:  #142850;
}

/* Dark mode for LMS modal */
body.dark-mode .modal-content {
    background: #060e1e;
    color: #f0f0f0;
}
body.dark-mode .modal-title {
    color: #f0f0f0;
}
body.dark-mode .lms-subplatform-card {
    background: #060e1e;
    color: #f0f0f0;
}
body.dark-mode .lms-access-btn {
    background-color:#142850;
    color: #fff;
}
body.dark-mode .lms-access-btn:hover {
    background-color: #142850;
}

body.dark-mode #lms-modal .modal-content {
    background: #060e1e !important;
    color: #f0f0f0 !important;
}
body.dark-mode #lms-modal .modal-title,
body.dark-mode #lms-modal h2 {
    color: #f0f0f0 !important;
}
body.dark-mode #lms-modal #lms-subplatforms-list {
    color: #f0f0f0 !important;
    scrollbar-color: #142850 #333;
}

body.dark-mode #lms-modal #lms-subplatforms-list::-webkit-scrollbar-track {
    background: #333;
}

body.dark-mode #lms-modal #lms-subplatforms-list::-webkit-scrollbar-thumb {
    background: #142850;
}

body.dark-mode #lms-modal #lms-subplatforms-list::-webkit-scrollbar-thumb:hover {
    background: #0f1f3a;
}

/* Announcement modal - dark mode */
body.dark-mode #announcement-modal .modal-content {
    background: #060e1e !important;
    color: #f0f0f0 !important;
}

body.dark-mode #announcement-modal h2 {
    color: #f0f0f0 !important;
}

/* =============================================================================
   TOUR SYSTEM STYLES
   ============================================================================= */

/* Tour overlay */
#tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Tour tooltip */
#tour-tooltip {
    position: fixed;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 300px;
    z-index: 10000;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Tour buttons */
.tour-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.tour-btn-primary {
    background: #142850;
    color: white;
}

.tour-btn-primary:hover {
    background: #142850;
    transform: translateY(-2px);
}

.tour-btn-secondary {
    background: #666;
    color: white;
}

.tour-btn-secondary:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Tour highlight */
.tour-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px rgba(20, 40, 80, 0.2), 0 0 0 8px rgba(20, 40, 80, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent !important;
}

/* Dark mode tour styles */
body.dark-mode #tour-tooltip {
    background: #060e1e;
    color: #ecf0f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark-mode #tour-tooltip h3 {
    color: #ecf0f1;
}

body.dark-mode #tour-tooltip p {
    color: #bdc3c7;
}

body.dark-mode .tour-btn-primary {
    background: #142850;
}

body.dark-mode .tour-btn-primary:hover {
    background: #142850;
}

body.dark-mode .tour-btn-secondary {
    background: #666;
}

body.dark-mode .tour-btn-secondary:hover {
    background: #555;
}

/* Tour restart button in dropdown */
#restart-tour-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    color: inherit;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#restart-tour-btn:hover {
    background-color: #f8f9fa;
}

body.dark-mode #restart-tour-btn:hover {
    background-color: #34495e;
}

/* Responsive tour adjustments */
@media (max-width: 768px) {
    #tour-tooltip {
        max-width: 280px;
        padding: 15px;
        font-size: 14px;
    }
    
    .tour-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* --- Aggressive mobile override for full responsiveness --- */
@media (max-width: 600px) {
  html, body {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .container, main, .section, .projects-container, .platforms-container, .announcements-container, .dining-menu-container {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  header, footer {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .platform-card, .project-card, .announcement-card, .dining-menu-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .btn-container {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .btn, .btn-primary, .btn-logout {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* --- Ensure vertical scrolling and prevent overlap on mobile --- */
@media (max-width: 600px) {
  html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  main, .container, .section, .projects-container, .platforms-container, .announcements-container, .dining-menu-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

