/* Global Styles */
body {
    background-color: #f5f7fa;
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #222;
    font-weight: 600;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    color: #007aff !important; /* Apple-like blue accent */
}

.navbar-nav .nav-link {
    margin-right: 1rem;
    color: #555 !important;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: #ffc107 !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-weight: bold;
    background-color: #fff;
    border-bottom: none;
    color: #333;
}

.card-body {
    position: relative;
    min-height: 300px;
    background: #fff;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background-color: #007aff;
    border-color: #007aff;
}
.btn-primary:hover {
    background-color: #0051a8;
    border-color: #0051a8;
}

/* Custom CSS for Select2 multi-selects */
/* Adjust the selected item "tags" */
.select2-container--bootstrap-5 .select2-selection__choice {
    background-color: #e0f0ff; /* Soft pastel blue background for tags */
    border: none;
    border-radius: 10px;
    color: #333;
    padding: 0.25rem 0.5rem;
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
  }
  
  /* Adjust the remove icon inside the tag */
  .select2-container--bootstrap-5 .select2-selection__choice__remove {
    color: #444;
    margin-right: 0.25rem;
    font-size: 0.9rem;
    cursor: pointer;
  }
  
  /* Style the general container */
  .select2-container--bootstrap-5 .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 2.5rem;
  }
  
  /* Spacing and layout for the render area */
  .select2-container--bootstrap-5 .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    line-height: 1.5;
  }
  
  /* Placeholder styling */
  .select2-container--bootstrap-5 .select2-search--inline .select2-search__field {
    margin: 0.2rem;
    padding: 0.2rem;
  }
  
  /* Adjusting hover/focus states if needed */
  .select2-container--bootstrap-5 .select2-selection--multiple:hover {
    border-color: #b3d7ff;
  }
  
  .select2-container--bootstrap-5.select2-container--focus .select2-selection--multiple {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,.25);
  }
  

.btn-success {
    background-color: #34c759;
    border: none;
}
.btn-success:hover {
    background-color: #28a745;
}

.btn-outline-primary {
    border-color: #1e88e5;
    color: #1e88e5;
}
.btn-outline-primary:hover {
    background-color: #1e88e5;
    color: #fff;
}

.btn-outline-danger {
    border-color: #e53935;
    color: #e53935;
}
.btn-outline-danger:hover {
    background-color: #e53935;
    color: #fff;
}

.btn-danger {
    background-color: #e53935;
    border: none;
}
.btn-danger:hover {
    background-color: #d32f2f;
}

/* Tables */
.table th, .table td {
    vertical-align: middle;
    font-size: 0.95rem;
}
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}
.table thead {
    background-color: #e9ecef;
    border-radius: 10px;
}
.table thead th {
    border-bottom: none;
    font-weight: 600;
}

/* Forms */
.form-group label,
.form-label {
    font-weight: 600;
    color: #333;
}

/* Modals */
.modal-content {
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}
.modal-title {
    font-weight: bold;
}

/* Badges */
.badge {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Lists */
.list-group-item {
    font-size: 14px;
    background-color: transparent;
    border: none;
    color: #333;
}

.list-group-item strong {
    color: #333;
}

/* Icon alignment */
.material-icons {
    vertical-align: middle;
    margin-right: 4px;
}

/* Select2 adjustments */
.select2-container--bootstrap5 .select2-selection {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.select2-container--bootstrap5 .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px);
}

/* Chart.js canvas */
canvas {
    max-height: 400px;
}

/* Welcome Page Styles */
.welcome-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f0f3f5 100%);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.welcome-logo {
    max-width: 200px;
    height: auto;
    opacity: 0;
    animation: fadeIn 1s forwards ease-in-out;
}

.welcome-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #222;
    opacity: 0;
    animation: fadeIn 1s 0.5s forwards ease-in-out;
}

.welcome-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 1s 1s forwards ease-in-out;
}


.welcome-features {
    max-width: 900px;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInUp 1s 2s forwards ease-in-out;
}

.feature-item {
    text-align: center;
}
.feature-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: #333;
}
.feature-text {
    font-size: 1rem;
}

/* Simple Keyframe Animations */
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
