/* General Styles */
body {
  background-color: #f4f6f9;
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;  /* Remove default margin */
}

/* Navbar Styles */
.bg-dark-blue {
  background-color: #203764 !important;  /* Dark blue for navbar */
}

.logo {
  margin-left: 10px;
}
.navbar-brand {
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.navbar-brand .logo {
  height: 40px;
  margin-right: 15px;
}

/* Mailbox Card Header */
.card-header {
  background-color: #203764;  /* Dark blue for card header */
  color: #fff;
}

.lang-switcher {
  display: flex;
  gap: 20px; /* space between links */
  justify-content: flex-end; /* right-align */
  padding: 10px;
  background-color: #222; /* dark background if you want */
}

/* Links */
.lang-switcher a {
  color: white; /* text color */
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px; /* space between flag and text */
  transition: color 0.2s;
}

/* Hover effect */
.lang-switcher a:hover {
  color: #ffd700; /* gold on hover, for example */
}

/* Flag images */
.lang-switcher .flag {
  width: 24px;
  height: auto;
}

/* Table Styles */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.table-hover tbody tr:hover {
  background-color: #f1f1f1;
}

/* Footer */
.card-footer {
  background-color: #203764;  /* Dark blue for footer */
  color: white;
}

/* Card Body for Email Viewer (Specific Fix) */
.view-email .card-body {
  padding: 20px; /* Adds padding to email viewer card body */
}

/* Email View Spacing Fixes */
.view-email .back-to-inbox {
  margin-bottom: 20px; /* Space below button */
}

.view-email .email-date {
  color: gray;
  font-size: 0.9rem;
  margin-left: 10px;
}

.view-email .email-header {
  margin-bottom: 15px; /* Space below subject */
}

/* Login Card Styles */
.login-card {
  width: 100%;
  max-width: 400px;  /* Ensures the card is not too wide */
  padding: 20px;     /* Adds space inside the card */
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  margin-top: 50px;
}
    
    /* Custom styling for email viewer */
    .email-date {
      color: gray;
      font-size: 0.9rem;
      margin-left: 10px;
    }

    .email-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .back-to-inbox {
      margin-bottom: 20px;
    }

    .card-title {
      margin-bottom: 0;
    }

    .email-details {
      margin-bottom: 15px;
    }

    .email-body {
      margin-top: 10px;
    }

    .container-fluid {
      padding: 20px;
    }

   .footer {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;    /* vertical centering */
    height: 80px;           /* adjust footer height as needed */
    background-color: white; /* dark background to match page */
    color: blue;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.footer-link {
    color: #1E90FF;
    text-decoration: none;
    margin-left: 5px;
}

.footer-link:hover {
    color: #63B8FF;
    text-decoration: underline;
}



tbody tr {
  user-select: none; /* Prevents text selection */
  cursor: pointer; /* Ensures the pointer cursor appears for clarity */
}

tbody tr:hover {
  background-color: #f0f0f0; /* Light gray background on hover */
}


.submit-btn {
  background-color: #203764;  /* Dark blue for button */
  color: white;
}

/* Container for all attachments */
.email-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Space between each attachment */
  margin-top: 20px;
}

/* Styling for each attachment box */
.email-attachment {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Image preview inside the box */
.attachment-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Hover effect */
.attachment-box:hover .attachment-preview {
  transform: scale(1.05); /* Slight zoom effect */
}

/* When hovered over the attachment box, change background */
.attachment-box:hover {
  border-color: #007bff; /* Highlight border on hover */
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2); /* Shadow effect */
}

/* Optional: Tooltip on hover to give more context */
.attachment-box:hover::after {
  content: "Click to view full image";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: bold;
}