/* General Styling */
html, body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    overflow: hidden; /* Prevent the entire page from scrolling */
}

:root {
    --primary-color: #47b4c7; /* Turquoise */
    --secondary-color: #5C6BC0; /* Darker purplish navy */
    --soft-blue: #72A8D6; /* Lighter sky blue */
    --deep-purple: #4A3F92; /* Deep purple */
    --teal: #369f9f; /* Soft teal */
    --dark-gray: #4D4D4D; /* Neutral dark */
    --light-gray: #F8F9FA; /* Soft background */
}

.bg-dashboard-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); /* Turquoise to Navy */
    color: white;
}

/* Specific Card Backgrounds */
.bg-dashboard-primary { background: var(--primary-color); color: white; }
.bg-dashboard-secondary { background: var(--secondary-color); color: white; }
.bg-dashboard-softblue { background: var(--soft-blue); color: white; }
.bg-dashboard-teal { background: var(--teal); color: white; }
.bg-dashboard-darkgray { background: var(--dark-gray); color: white; }

.btn-primary {
    background-color: var(--secondary-color); /* Change the button background */
    border-color: #250b45; /* Change the border color */
}

.btn-primary:hover {
    background-color: #6e7abe; /* Button color on hover */
    border-color: #250b45; /* Border color on hover */
}

.btn-primary:disabled {
    background-color: #a8b2d8; /* A lighter shade of your secondary color */
    border-color: #a8b2d8;
    color: white; /* Ensure text remains visible */
    cursor: not-allowed; /* Show a disabled cursor */
}

.info-card {
    flex: 1;
    margin: 0 10px;
}

.alert {
    display: block !important;  /* Force it to be visible */
}

.info-card h5 {
    font-weight: bold;
    margin-bottom: 10px;
}

.custom-badge {
    background-color: var(--secondary-color);
    color: white; /* Ensure the text is readable */
}

/* Card Styling */
.card {
    border-radius: 15px 15px 15px 15px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.card-header {
    border-bottom: 1px solid #eaeaea; /* Optional: Separator line between header and body */
    padding: 1rem;
}

.card-body {
    flex: 1;
    padding: 1.5rem;
}

/* Only apply 100% height where you want it: */
.card.card-fullheight {
    height: 100%;
}

/* Dashboard cards */

/* Scoped Dashboard Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh; /* Ensures full height */
    overflow-y: auto; /* Allow vertical scrolling */
    padding-bottom: 30px; /* Prevents cutoff */
}

.dashboard-container-card {
    border-radius: 15px 15px 0 0; /* Rounded top corners only */
    overflow-y: auto;
    background-color: #ffffff; /* Ensure card background is white */
    display: flex;
    flex-direction: column; /* Allow the card body to grow */
    height: 100%; /* Full height by default */
    border-color: #250b45;
}

/* Modern dashboard card styles */
.bg-gradient-primary {
  background: linear-gradient(90deg, #4fd1c5 0%, #4299e1 100%) !important;
}
.bg-gradient-secondary {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
}
.bg-gradient-softblue {
  background: linear-gradient(90deg, #89f7fe 0%, #66a6ff 100%) !important;
}
.bg-gradient-teal {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
}
.bg-gradient-darkgray {
  background: linear-gradient(90deg, #232526 0%, #414345 100%) !important;
}
.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  margin-right: 0.5rem;
}
.dashboard-card {
  border-radius: 18px !important;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.08);
}
.dashboard-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
  transform: translateY(-2px) scale(1.01);
}
.dashboard-card .card-header {
  border-radius: 18px 18px 0 0 !important;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 0.5rem;
}
.dashboard-card .card-body {
  background: #fff;
  border-radius: 0 0 18px 18px;
}

/* Dashboard List Styling */
.dashboard-list {
    list-style: none;
    padding: 0;
}

.dashboard-list li {
    background: #f8f9fa;
    padding: 10px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.dashboard-list li i {
    margin-right: 8px;
    color: #333;
}

/* Responsive Spacing */
.dashboard-container .row.g-4 {
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping */
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.dashboard-card {
    display: flex;
    flex-direction: column; 
    flex-wrap: nowrap; 
    overflow: hidden; 
    border-radius: 15px;
    min-height: 180px; /* Allow expansion */
}

.dashboard-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: hidden; 
}

/* Navbar Styles */
.navbar {
    width: 250px;
    border-right: 1px solid #dee2e6;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 5px; /* Optional: Rounded edges */
    transition: background-color 0.3s, color 0.3s;
}

/* Hover State */
.nav-link:hover {
    background-color: #495057; /* Darker gray for hover */
    color: #ffffff; /* Keep text white */
}

/* Active State */
.nav-link.active {
    background-color: #47b4c7; /* Turquoise for active link */
    color: #ffffff; /* Keep text white */
    /* font-weight: bold; */
}

/* Sign up Page */
.btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:hover {
    background-color: #23272b;
    border-color: #23272b;
}

.container {
    overflow-y: auto;
    padding-bottom: 150px;
    height: 100vh;
}

.alert-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
}

.flash-wrapper {
    margin-top: -20px; /* Moves the flash messages closer without pushing content down */
}

/* Messaging related */

.message-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px); /* Adjust for navbar height if needed */
    /* margin-bottom: 1rem; */
}

.message-container {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    padding-right: 0.5rem; /* Add padding for scrollbar spacing */
    border-radius: 4px;
}

.message-form-container {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    z-index: 1; /* Ensure it is on top of other elements */
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    padding: 1rem;
    border-radius: 4px;
}

.message-bg {
    background-color: #eff0f9; /* Replace with your desired custom color */
    color: #212529; /* Adjust text color for contrast */
}

form button[type="submit"] {
    display: block;
    margin-top: 1rem; /* Add some space between the input fields and the button */
}

#message-content.border-primary {
    border: 2px dashed #007bff; /* Optional styling for drag-over state */
}

label[for="attachment"] {
    transition: background-color 0.3s, transform 0.2s;
}

label[for="attachment"]:hover {
    background-color: #e2e6ea; /* Light gray background on hover */
}

label[for="attachment"]:active {
    transform: scale(0.95); /* Slightly shrink the button on click */
}