@import 'variables.css';

/* Font definitions */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/Montserrat-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/Montserrat-700.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas_neue/BebasNeue-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* General styles */
body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
}

a {
  color: var(--highlight-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--default-bnt-border-radius);
  font-family: var(--body-font);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--highlight-color);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--highlight-color);
  text-decoration: none;
}

/* Login form styles */
.auth-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  border-radius: var(--default-border-radius);
  box-shadow: var(--default-drop-shadow);
  border: var(--default-border-style)
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
}

.message{
  text-align: center;
  margin-top:20px;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
  }
  
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh; 
  position: fixed; 
  overflow-y: auto; 
}

.main-content {
  flex: 1;
  background-color: white;
  margin-left: var(--sidebar-width); /* Add margin equal to sidebar width */
}

.full-width {
  width: 100%;
}

/* When user is not authenticated, reset the margin */
.main-content.full-width {
  width: 100%;
  margin-left: 0;
}

/* Sidebar styles */
.logo-container {
  padding: 20px;
  text-align: center;
}

.logo {
  max-width: 100%;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-icon {
  width: 25px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.main-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.main-nav .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav .nav-item.active {
  background-color: var(--highlight-color);
  cursor: default;
  pointer-events: none;
}

.main-nav .nav-item.active:hover {
  background-color: var(--highlight-color);
  text-decoration: none;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
}

.logout-btn {
  display: block;
  background-color: #6666FF;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-decoration: none;
}

.copyright {
  font-size: 12px;
  opacity: 0.7;
}

/* Header styles */
.main-header {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 5px 30px;
  background-color: white;
}

.welcome-header h1 {
  margin: 0;
  font-size: 28px;
  color: #090D56;
}

.language-selector {
  display: flex;
  gap: 10px;
}

.lang-btn {
  font-size: 20px;
  padding: 5px;
  text-decoration: none;
}

/* Dashboard styles */
.dashboard-wrapper {
  padding: 20px 30px;
}

.dashboard-hero {
  position: relative;
  margin-bottom: 30px;
}

.dashboard-hero-img {
  width: 100%;
  border-radius: 8px;
  height: auto;
}

.note {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

/* News panel */
.panel {
  background-color: white;
  border-radius: var(--default-border-radius);
  border: var(--default-border-style);
  overflow: hidden;
  box-shadow: var(--default-drop-shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
}

.panel-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.panel-title {
  text-transform: uppercase;
  margin: 0;
  font-size: 18px;
  color: var(--text-color);
}

.panel-content {
  padding: 20px;
}

.news-item {
  margin-bottom: 20px;
}

.news-date {
  font-family: var(--heading-font);
  font-size: 16px;
  margin: 0 0 8px 0;
  color: var(--text-color);
}

.read-more {
  text-align: right;
}

.read-more-link {
  color: var(--highlight-color);
  display: inline-flex;
  align-items: center;
}


.language_switcher_icon{
  width: 30px;
}

/* Checkbox styling */
.checkbox-container {
  margin: 15px 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

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

.checkbox-help-text {
  display: block;
  color: var(--text-color);
  font-size: 12px;
  margin-top: 2px;
  margin-left: 24px; /* This aligns the help text with the text of the checkbox */
}

.forgot-password-link {
  text-align: right;
  margin-top: 8px;
  margin-bottom: 15px;
}

.forgot-password-link a {
  color: var(--text-color);
  font-size: 0.9em;
}

.forgot-password-link a:hover {
  color: var(--highlight-color-2);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.policy-link {
  margin: 0 10px;
  font-size: 0.5rem;
  color: white;
}

.policy-link:hover {
  color: var(--highlight-color-2);
}

/* Notification dot for unread messages */
.notification-dot {
  position: relative;
}

.notification-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #ff3c8d;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}