/* Parabyte Bootcamps Styles */

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #10b981;
  --background-color: #f8fafc;
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo img {
  height: 40px;
}

.admin-login-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.admin-login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* Main Content */
main {
  padding: 3rem 0;
}

.page-title {
  text-align: center;
  padding: 4rem 0;
  background-image: linear-gradient(to right, #4f46e5, #818cf8);
  border-radius: 0.5rem;
  color: white;
  margin-bottom: 3rem;
  position: relative;
}

.page-title h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.page-title p {
  font-size: 1rem;
  color: #e0e7ff;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Hero Logo */
.hero-logo {
  display: block;
  margin: 0 auto 2rem;
  width: 180px;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* Bootcamp Cards */
.bootcamps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.bootcamp-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.bootcamp-card:hover {
  box-shadow: var(--hover-shadow);
  border-color: transparent;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bootcamp-tags {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag {
    display: inline-block;
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
}


.arrow-icon {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.bootcamp-card:hover .arrow-icon {
  transform: translateX(5px);
}

.bootcamp-content {
  margin-bottom: 1.5rem;
}

.bootcamp-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.bootcamp-description {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

.bootcamp-details {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.detail-item svg {
  color: #94a3b8;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* Footer */
footer {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Admin Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--hover-shadow);
}

.modal-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  position: absolute;
  top: 1rem;
  right: 1rem;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--text-color);
}

.registration-modal {
  max-width: 500px;
  width: 90%;
}

.bootcamp-details {
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}

.bootcamp-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.bootcamp-info .bootcamp-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.bootcamp-meta {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.bootcamp-duration,
.bootcamp-level {
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.bootcamp-duration {
    color: #0c4a6e;
}

.bootcamp-level {
    color: #0c4a6e;
}

.bootcamp-info .bootcamp-duration {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--background-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 2rem;
  }
  
  .bootcamps {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Admin Dashboard Styles */
.admin-dashboard {
  display: none;
  padding: 2rem 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.admin-actions {
  display: flex;
  gap: 1rem;
}

.logout-btn {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: var(--background-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.add-bootcamp-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.add-bootcamp-btn:hover {
  background-color: #059669;
}

/* Bootcamp Cards Grid for Admin Dashboard */
.bootcamp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.bootcamp-admin-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bootcamp-admin-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

.bootcamp-card-header {
  margin-bottom: 1rem;
}

.bootcamp-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.bootcamp-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bootcamp-card-duration,
.bootcamp-card-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.bootcamp-card-duration {
  background-color: #f0f9ff;
  color: #0c4a6e;
}

.bootcamp-card-difficulty {
  background-color: #f0fdf4;
  color: #166534;
}

.bootcamp-card-analytics {
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.bootcamp-card-analytics h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.analytics-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.analytics-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.analytics-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.bootcamp-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.edit-btn, .delete-btn, .view-users-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  flex: 1;
}

.edit-btn {
  background-color: #f3f4f6;
  color: var(--text-color);
}

.edit-btn:hover {
  background-color: #e5e7eb;
}

.delete-btn {
  background-color: #fee2e2;
  color: #991b1b;
}

.delete-btn:hover {
  background-color: #fecaca;
}

.view-users-btn {
  background-color: #dbeafe;
  color: #1e40af;
}

.view-users-btn:hover {
  background-color: #bfdbfe;
}

/* Bootcamp Management Table (kept for reference) */
.bootcamp-table {
  display: none; /* Hide the table since we're using cards now */
}

/* Add/Edit Bootcamp Form */
.bootcamp-form {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 0.375rem;
  box-shadow: var(--hover-shadow);
  z-index: 1001;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background-color: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.notification.error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* Loading Spinner */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Users Table Styles */
.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.users-table th {
  background-color: var(--background-color);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
}

.users-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.users-table tr:last-child td {
  border-bottom: none;
}

.empty-users {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem 0;
}

/* Registered Users Table Styles */
.registrations-table-container {
  background-color: #f9fafb;
  border-radius: 0.375rem;
  margin-top: 1rem;
  padding: 1rem;
  grid-column: 1 / -1; /* Make it span full width in grid layout */
}

.registrations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.registrations-table th {
  background-color: #f1f5f9;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}

.registrations-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.registrations-table tr:last-child td {
  border-bottom: none;
}

.status-selector, .note-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background-color: white;
}

.status-selector:focus, .note-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Instructor Image Styles */
.image-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  background-color: var(--background-color);
}

.image-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

/* Instructor Section on Registration Page */
.instructor-section {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
}

.instructor-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.instructor-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  flex-shrink: 0;
}

.instructor-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructor-image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--background-color);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.875rem;
  text-align: center;
}

.instructor-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.instructor-bio {
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 1rem;
}

/* Responsive adjustments for admin features */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .bootcamp-table {
    overflow-x: auto;
  }
  
  .bootcamp-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .bootcamp-card-actions {
    flex-direction: column;
  }
  
  .instructor-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .instructor-image {
    width: 100px;
    height: 100px;
  }
}
/* Registration Page Layout */
.registration-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.registration-right-column {
    position: sticky;
    top: 100px;
}

.registration-form-container {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

@media (max-width: 992px) {
    .registration-layout {
        grid-template-columns: 1fr;
    }

    .registration-right-column {
        position: static;
        top: auto;
    }
}

.registration-left-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; 
}

.registration-left-column h1,
.registration-left-column h2,
.registration-left-column h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.registration-left-column p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
}

.bootcamp-detail ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.bootcamp-detail li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-light);
}
/* Trix Editor Styles */
.trix-editor {
    min-height: 100px;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.trix-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.trix-editor::placeholder {
    color: var(--text-light);
}

/* Trix Toolbar Styles */
.trix-button-row {
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: var(--background-color);
}

.trix-button {
    border: none;
    background: transparent;
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    margin: 0;
    border-radius: 0;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.trix-button:hover {
    background-color: #e5e7eb;
    color: var(--text-color);
}

.trix-button.trix-active {
    background-color: var(--primary-color);
    color: white;
}

.trix-dialog {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    box-shadow: var(--hover-shadow);
}

.trix-input {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.875rem;
}

.trix-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Trix Content Styles */
.trix-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

.trix-content h1 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 1em 0 0.5em 0;
}

.trix-content h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin: 1em 0 0.5em 0;
}

.trix-content h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin: 1em 0 0.5em 0;
}

.trix-content ul, .trix-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
    list-style-position: inside;
}

.trix-content li {
    margin: 0.25em 0;
}

.trix-content strong {
    font-weight: 600;
}

.trix-content em {
    font-style: italic;
}

.trix-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.trix-content a:hover {
    color: var(--primary-dark);
}

.trix-content blockquote {
    border-left: 4px solid var(--border-color);
    margin: 1em 0;
    padding-left: 1em;
    color: var(--text-light);
    font-style: italic;
}

.trix-content pre {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 1em;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
}

.trix-content code {
    background-color: var(--background-color);
    border-radius: 0.1875rem;
    padding: 0.2em 0.4em;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Ensure Trix editors work well in form layout */
.form-group .trix-editor {
    margin-top: 0.5rem;
}

/* Responsive adjustments for Trix */
@media (max-width: 768px) {
    .trix-button-row {
        flex-wrap: wrap;
    }
    
    .trix-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}