/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #edf2f7;
}

/* Navigation */
.navbar {
    background-color: #1e293b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: #f8fafc;
}

.logo .icon {
    color: #38bdf8;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Card styles */
.card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #cbd5e1;
    background-color: #1e293b;
    color: #ffffff;
}

.btn:hover {
    background-color: #334155;
}

.btn.active {
    background-color: #38bdf8;
    color: white;
    border-color: #38bdf8;
}

.btn-primary {
    background-color: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
}

.btn-primary:hover {
    background-color: #0284c7;
}

/* Delete button */
.delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #ef4444;
    transition: color 0.2s;
    font-size: 1.25rem;
}

.delete-btn:hover {
    color: #dc2626;
}

/* Form styles */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

/* .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
} */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-column layout */
    gap: 1.5rem; /* Adjust spacing between fields */
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* drop down */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1;
  }

  .dropdown-item {
    padding: 8px;
    cursor: pointer;
  }

  .dropdown-item:hover {
    background: #f1f1f1;
  }

  .show {
    display: block;
  }

/* Preview section */
.preview-section {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.preview-content {
    min-height: 200px;
}

.preview-placeholder {
    color: #64748b;
    text-align: center;
    padding: 2rem;
}

/* Profile styles */
.profile-preview, .profile-content {
    display: flex;
    gap: 1.5rem;
}

.preview-photo, .profile-photo {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-info, .profile-info {
    flex: 1;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700; 
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.title {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.experience {
    color: #475569;
    margin-bottom: 0.5rem;
}

.registration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #059669;
    margin-bottom: 0.5rem;
}

.about {
    color: #1e293b;
    margin: 1rem 0;
}

.date {
    font-size: 0.875rem;
    color: #64748b;
}

/* Search box */
.search-box {
    margin-bottom: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #2563eb;
    border: 1px solid #1e40af;
    border-radius: 0.5rem;
}

.search-container input {
    border: none;
    background: transparent;
    padding: 0.25rem 0;
}

.search-container input:focus {
    box-shadow: none;
}

/* Utility classes */
.hidden {
    display: none;
}

.icon {
    flex-shrink: 0;
}

/* No profiles message */
.no-profiles {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .profile-preview, .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .delete-btn {
        top: 0.25rem;
        right: 0.25rem;
    }
}
/* Logout Button Styling */
.logout-btn {
    background-color: #d9534f; /* Red color */
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .logout-btn:hover {
    background-color: #c9302c; /* Darker red on hover */
  }

  .upload-container {
    margin-bottom: 10px;
  }
  
  #image-count {
    margin-top: 5px;
    font-weight: bold;
  }
  
  #profile-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  
  .preview-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 5px;
  }

  .hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, #000, #222);
    color: white;
  }
  
  .hero-content {
    margin-bottom: 20px;
  }
  
  .hero-images {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .hero-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .fields-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Hide scrollbar */
    white-space: nowrap;
    padding: 10px 0;
  }
  
  .fields-grid-wrapper {
    overflow: hidden; /* Hide scrollbar */
    flex: 1;
    display: flex;
    scroll-behavior: smooth; /* Enable smooth scrolling */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  
  .fields-grid-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Edge */
  }
  
  .fields-grid {
    display: inline-flex;
    gap: 20px;
    transition: transform 0.3s ease; /* Smooth scrolling */
  }
  
  .field {
    flex: 0 0 auto;
    width: 250px;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .field img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  
  .field h4 {
    margin: 10px 0;
    color: #4a90e2;
  }
  
  .field p {
    color: #555;
    font-size: 14px;
  }
  
  .field:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  /* Remove scroll-arrow styles */
  .scroll-arrow {
    display: none; /* Hide the arrows */
  }
  
  .carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    cursor: pointer; /* Add cursor pointer for dots */
  }
  
  .indicator {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .indicator.active {
    background-color: #4a90e2;
    transform: scale(1.2); /* Slightly enlarge the active dot */
  }
  
  /* Add functionality for scrolling via dots */
  .indicator:hover {
    background-color: #357ab8; /* Highlight dot on hover */
  }
  
  /* Add smooth scrolling effect for dots */
  .indicator:focus {
    outline: none; /* Remove focus outline */
  }
  

  