/* Dashboard Style Enhancements to match dash.png */

/* Navigation Bar Styling */
.navbar-inverse {
  background-color: #4a90c2 !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  background-image: linear-gradient(to bottom, #4a90c2 0, #4a90c2 100%);
}

.navbar-inverse .navbar-nav > li > a {
  color: white !important;
  font-weight: 500;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.navbar-inverse .navbar-nav > .dropdown > a .caret {
  border-top-color: white !important;
  border-bottom-color: white !important;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Dashboard Header */
.navbar-fixed-top {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.appName {
  font-size: 18px;
  font-weight: 600;
  color: #4a90c2;
  margin-top: 10px;
  display: inline-block;
}

/* Dashboard Cards/Boxes */
.dashboard-card {
  background: white;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  box-shadow: none;
  margin: 15px 0;
  overflow: hidden;
  border-radius: 15px;

}

.dashboard-card:hover {
  transform: none;
  box-shadow: none;
}

/* Dashboard Header styling to match dash.png */
.dashboard-card-header {
  background: #cccccc !important;
  padding: 12px 20px;
  border-bottom: 1px solid #b0b0b0;
  font-weight: bold;
  color: #333333 !important;
  font-size: 13px;
  text-transform: none;
  margin: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  min-height: 45px;
}

.dashboard-card-header h4,
.dashboard-card-header h5 {
  color: #333333 !important;
  margin: 0;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
}

.dashboard-card-header .planHeading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
}

.dashboard-card-header .planHeading h4 {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: bold;
  color: #333333 !important;
  line-height: 1.4;
}

.dashboard-card-header .planHeading h5 {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: bold;
  color: #333333 !important;
  line-height: 1.4;
}

/* Remove special filter section styling to make it consistent */
.filter-section .dashboard-card-header {
  background: #cccccc !important;
}

/* Ensure proper text alignment and remove any inherited margins/padding */
.dashboard-card-header * {
  box-sizing: border-box;
}

.dashboard-card-header h1,
.dashboard-card-header h2,
.dashboard-card-header h3,
.dashboard-card-header h4,
.dashboard-card-header h5,
.dashboard-card-header h6 {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: bold !important;
  color: #333333 !important;
  line-height: 1.4 !important;
}

.dashboard-card-body {
  padding: 20px;
}

/* Status Boxes Styling */
.status-box {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  padding: 15px 10px;
}

.status-box:hover {
  border-color: #4a90c2;
  box-shadow: 0 2px 8px rgba(74, 144, 194, 0.2);
  transform: translateY(-1px);
}

.status-box.ready-to-start {
  border-left: 4px solid #28a745;
}

.status-box.under-creation {
  border-left: 4px solid #ffc107;
}

.status-box.under-evaluation {
  border-left: 4px solid #17a2b8;
}

.status-box.approved {
  border-left: 4px solid #28a745;
}

.status-box.cancelled {
  border-left: 4px solid #dc3545;
}

/* Status counts */
.status-count {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  display: block;
  margin: 5px 0;
}

.status-label {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Section */
.filter-section {
  background: #f8f9fa;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.filter-section h4 {
  color: #495057;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Form Controls */
.form-control {
  border-radius: 12px;
  border: 1px solid #ced4da;
  padding: 8px 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #4a90c2;
  box-shadow: 0 0 0 2px rgba(74, 144, 194, 0.2);
}

/* Buttons */
.btn-primary {
  background-color: #4a90c2;
  border-color: #4a90c2;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #3d7ca8;
  border-color: #3d7ca8;
  transform: translateY(-1px);
}

/* Grid Layout - flex for proper wrapping */
.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  align-items: flex-start;
}

/* Ensure cards maintain their width and don't stretch */
.dashboard-grid > * {
  flex: 0 0 auto;
  max-width: 100%;
}

/* Profile Switcher Enhancement */
#profile-switcher-dropdown {
  color: white !important;
}

.dropdown-menu {
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border: none;
  margin-top: 5px;
}

.dropdown-menu > li > a {
  padding: 10px 15px;
  transition: background-color 0.2s ease;
}

.dropdown-menu > li > a:hover {
  background-color: #f8f9fa;
  color: #4a90c2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .status-box {
    padding: 10px 8px;
  }
  
  .status-count {
    font-size: 20px;
  }
}