/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Exclude Ant Design DatePicker components from global reset to fix calendar display */
.ant-picker-panel table,
.ant-picker-panel table * {
  box-sizing: border-box;
}

.ant-picker-content th,
.ant-picker-content td {
  padding: 4px 8px;
  text-align: center;
}

.ant-picker-cell {
  padding: 4px 0;
}

.ant-picker-cell-inner {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
}

.App {
  min-height: 100vh;
  /*padding-top: 64px; /* Height of the navbar */
}

/* Profile completion modal above mobile navbar (z-index 1000) */
.student-profile-completion-alert-modal,
.student-profile-completion-alert-modal + .ant-modal-mask {
  z-index: 1100 !important;
}

/* Ant Design — primary buttons (match input/select focus blue #2563eb) */
.ant-btn-primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.45);
}

.ant-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.ant-btn-primary:disabled,
.ant-btn-primary.ant-btn-disabled {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
  color: #9ca3af !important;
  box-shadow: none;
  text-shadow: none;
}

/* Add smooth scrolling to the whole page */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.navbar {
  background-color: #282c34;
  padding: 1rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: #3d424a;
}

.home-container {
  padding: 2rem;
}

.feature-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
  color: #282c34;
}

.card p {
  color: #666;
  margin-bottom: 1rem;
}

.card a {
  display: inline-block;
  background-color: #282c34;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background-color 0.3s;
}

.card a:hover {
  background-color: #3d424a;
}

.internship-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.internship-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.back-to-home {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-to-home:hover {
  text-decoration: underline;
}

.internship-content {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.user-options {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.option-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 300px;
  text-align: center;
}

.option-card h3 {
  color: #282c34;
  margin-bottom: 1rem;
}

.option-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.option-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-button {
  display: block;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.option-button:hover {
  background-color: #357abd;
}



/* Responsive Design */
@media (max-width: 768px) {
  .feature-cards {
    flex-direction: column;
    align-items: center;
  }

  .user-options {
    flex-direction: column;
    align-items: center;
  }

  .option-card {
    width: 100%;
    max-width: 300px;
  }
}

.custom-autocomplete-wrapper {
  width: 100%;
  height: 40px;
  border: 1.5px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

/* Custom AutoComplete wrapper for single border */
.custom-autocomplete-wrapper:focus-within {
  border-color: #1890ff !important;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1) !important;
  border: none !important;
}

.custom-autocomplete-wrapper:hover {
  border-color: #40a9ff !important;
  border: none !important;
}

/* Modern Ant Design Dropdown & Input Styles */
.ant-select-selector,
.ant-input,
.ant-select-selection-search-input,
.ant-picker,
.ant-input-number {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 16px;
  display: flex !important;
  align-items: center !important;
  text-align: left;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ant-select-selection-search-input {
  border: none !important;
}

.ant-select-selection-search-input:focus {
  border: none !important;
}

/* Ensure text is vertically centered in dropdowns */
.ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.ant-select-selection-placeholder {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* Focused state */
.ant-select-focused .ant-select-selector,
.ant-input:focus,
.ant-select-selection-search-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
}

/* Dropdown menu */
.ant-select-dropdown,
.ant-select-dropdown-menu {
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  font-size: 16px;
}

/* Option hover and selected */
.ant-select-item-option-active {
  background: #f0f7ff !important;
  border: none !important;
}

.ant-select-item-option-selected {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
}

/* Placeholder and disabled */
.ant-select-selection-placeholder,
.ant-input::placeholder {
  color: #b0b3b8 !important;
  opacity: 1;
}

.ant-select-disabled .ant-select-selector,
.ant-input[disabled] {
  background: #f5f6fa !important;
  color: #b0b3b8 !important;
  cursor: not-allowed;
  border: none !important;
}

/* Responsive tweaks */
@media (max-width: 600px) {

  .ant-select-selector,
  .ant-input {
    font-size: 15px;
    min-height: 36px !important;
    height: 36px !important;
  }
}

/* --- End Modern Dropdown Styles --- */

/* --- Modern SimpleDropdown Styles --- */
.simple-dropdown {
  position: relative;
  width: 100%;
}

.simple-dropdown-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  padding: 0 16px;
  background: #fff;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: none;
}

.simple-dropdown-button:hover,
.simple-dropdown-button:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.simple-dropdown-button.disabled {
  background: #f5f6fa;
  color: #b0b3b8;
  cursor: not-allowed;
}

.simple-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  max-height: 220px;
  overflow-y: auto;
  font-size: 16px;
  margin-top: 2px;
}

.simple-dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
  color: #222;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.simple-dropdown-item.selected {
  background: #2563eb;
  color: #fff;
}

.simple-dropdown-item:hover {
  background: #f0f7ff;
}

/* Responsive tweaks */
@media (max-width: 600px) {

  .simple-dropdown-button,
  .simple-dropdown-item {
    font-size: 15px;
    min-height: 36px;
    padding: 0 12px;
  }
}

/* --- End Modern SimpleDropdown Styles --- */

/* Global responsive helpers */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .internship-container {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .home-container {
    padding: 1.5rem;
  }

  .feature-cards {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .option-card {
    width: 100%;
    max-width: 360px;
  }

  .internship-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .internship-header {
    flex-wrap: wrap;
  }

  .ant-table-wrapper {
    overflow-x: auto;
  }

  .ant-table {
    min-width: 600px;
  }

  .ant-modal {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .ant-modal-content {
    padding: 16px !important;
  }
}

@media (max-width: 576px) {
  .home-container {
    padding: 1rem;
  }

  .card,
  .option-card {
    max-width: 100%;
  }

  .ant-table {
    min-width: 520px;
  }
}