* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
    font-family: Arial, sans-serif;
}


/* ------------------------------------Sidebar------------------------------------*/
/* ------------------------------------Sidebar------------------------------------*/
/* ------------------------------------Sidebar------------------------------------*/

.sidebar {
    width: 230px;
    background-color: #102232;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: width 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.logo img {
    width: 43%;
    height: auto;
    object-fit: contain;
}


.sidebar hr {
    width: 85%;
    border: 0;
    height: 1px;
    background: rgb(57, 57, 57);
    margin-bottom: 10px;
}

.sidebar button {
    width: 92%;
    padding: 10px 20px;
    margin: 5px 0;
    border: none;
    background-color: transparent;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border-radius: 5px;
}

.sidebar button img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.sidebar button:hover, .sidebar button.active {
    background-color: #162f46;
}


.loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    z-index: 1000;
}

.loading-wave {
  width: 300px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.loading-bar {
  width: 20px;
  height: 10px;
  margin: 0 5px;
  background-color: #3498db;
  border-radius: 5px;
  animation: loading-wave-animation 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-bar:nth-child(3) {
  animation-delay: 0.2s;
}

.loading-bar:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes loading-wave-animation {
  0% {
    height: 10px;
  }

  50% {
    height: 50px;
  }

  100% {
    height: 10px;
  }
}

.pl {
  width: 6em;
  height: 6em;
}

.pl__ring {
  animation: ringA 2s linear infinite;
}

.pl__ring--a {
  stroke: #f42f25;
}

.pl__ring--b {
  animation-name: ringB;
  stroke: #f49725;
}

.pl__ring--c {
  animation-name: ringC;
  stroke: #255ff4;
}

.pl__ring--d {
  animation-name: ringD;
  stroke: #f42582;
}

@keyframes ringA {
  from, 4% {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -330;
  }

  12% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -335;
  }

  32% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -595;
  }

  40%, 54% {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -660;
  }

  62% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -665;
  }

  82% {
    stroke-dasharray: 60 600;
    stroke-width: 30;
    stroke-dashoffset: -925;
  }

  90%, to {
    stroke-dasharray: 0 660;
    stroke-width: 20;
    stroke-dashoffset: -990;
  }
}

@keyframes ringB {
  from, 12% {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -110;
  }

  20% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -115;
  }

  40% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -195;
  }

  48%, 62% {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }

  70% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }

  90% {
    stroke-dasharray: 20 200;
    stroke-width: 30;
    stroke-dashoffset: -305;
  }

  98%, to {
    stroke-dasharray: 0 220;
    stroke-width: 20;
    stroke-dashoffset: -330;
  }
}

@keyframes ringC {
  from {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: 0;
  }

  8% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -5;
  }

  28% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -175;
  }

  36%, 58% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }

  66% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }

  86% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -395;
  }

  94%, to {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -440;
  }
}

@keyframes ringD {
  from, 8% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: 0;
  }

  16% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -5;
  }

  36% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -175;
  }

  44%, 50% {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -220;
  }

  58% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -225;
  }

  78% {
    stroke-dasharray: 40 400;
    stroke-width: 30;
    stroke-dashoffset: -395;
  }

  86%, to {
    stroke-dasharray: 0 440;
    stroke-width: 20;
    stroke-dashoffset: -440;
  }
}

/* ------------------------------------Solutions------------------------------------*/
/* ------------------------------------Solutions------------------------------------*/
/* ------------------------------------Solutions------------------------------------*/

.content {
    flex-grow: 1;
    padding: 10px;
    margin-left: 230px;
    display: none;
}

.content.active {
    display: block;
}

.solutions-header {
    width: 81%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    right: 0;
    overflow-y: auto;
    z-index: 999;
}

.solutions-header input {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.solutions-header button {
    padding: 10px 15px;
    background-color: #405c76;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.solutions-header-sheets {
    width: 81%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    right: 0;
    overflow-y: auto;
}

.solutions-header-sheets h2 {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
    text-align: center;
}

/* ---------------------------------------Form--------------------------------------*/
/* ---------------------------------------Form--------------------------------------*/
/* ---------------------------------------Form--------------------------------------*/

.form-container {
    background: transparent;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 
                0 15px 35px rgba(0, 0, 0, 0.08),
                0 5px 15px rgba(0, 0, 0, 0.06);
    padding: 20px;
    max-width: 100%;
    margin: 60px 0 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: black;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: white;
    color: #333;
    outline: none;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #1e3f5e;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #253e68;
}

.form-group input[type="file"] {
    border: 2px dashed #e0e0e0;
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #d0d0d0;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #e0e0e0;
}

#solutionForm textarea,
.challenge-input,
.solution-input {
  scrollbar-width: none; 
  -ms-overflow-style: none;  
  min-height: 40px;  
  max-height: 300px;  
  line-height: 1.5;  
  resize: vertical;  
  overflow-y: auto;
  width: 100%;  
  box-sizing: border-box;  
  padding: 8px;  
  border: 1px solid #ccc;
  transition: height 0.2s ease;
}

#solutionForm textarea::-webkit-scrollbar,
.challenge-input::-webkit-scrollbar,
.solution-input::-webkit-scrollbar {
  display: none;
}

.challenge-input {
    overflow-y: auto;  
    max-height: 150px; 
    resize: none;      
}

.challenge-input::-webkit-scrollbar {
    width: 8px;        
}

.challenge-input::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

.challenge-input::-webkit-scrollbar-thumb {
    background: #888;   
    border-radius: 4px; 
}

.challenge-input::-webkit-scrollbar-thumb:hover {
    background: #555;   
}

.challenge-solution-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 10px;
  gap: 15px;
}

.challenge-column {
  flex: 1;  
}

.solution-column {
  flex: 2;    
}

.challenge-solution-row .remove-challenge-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  align-self: center;
  margin-left: 10px;
}

.challenge-solution-row textarea {
  width: 100%;
  box-sizing: border-box;
}

.challenge-solution-row button {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.challenge-solution-row button:hover {
    background-color: #c82333;
}

.add-button {
    background-color: #1f5a8d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-container {
    display: none;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.save-btn, .cancel-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.save-btn {
    background-color: #28a745;
    color: white;
}

.save-btn:hover {
    background-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cancel-btn {
    background-color: #dc3545;
    color: white;
}

.cancel-btn:hover {
    background-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#logoPreview {
    max-width: 250px;
    max-height: 250px;
    margin-top: 10px;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
}

/* ------------------------------------Solution Table-------------------------------*/
/* ------------------------------------Solution Table-------------------------------*/
/* ------------------------------------Solution Table-------------------------------*/


#solutionTable {
    margin-top: 60px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #102232;
    color: white;
    padding: 10px;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
}

td img {
    vertical-align: middle;
}

.solution-logo {
    width: 60px;
    height: 35px;
    margin-right: 30px;
    object-fit: contain;
}

.solution-name {
    font-size: 15px;
}

.action-buttons {
    display: flex;
    gap: 7px;
    align-items: center;
}

.edit-btn, .delete-btn {
    background-color: #4a7290;
    color: white;
    border-radius: 4px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.edit-btn {
    background-color: #4a7290;
}

.delete-btn {
    background-color: #c45757;
}

#solutionTable .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


#solutionTable .edit-btn, 
#solutionTable .delete-btn {
    margin: 0;
    padding: 5px 10px;
    font-size: 12px;
}

.update-btn, .delete-btn {  
    padding: 5px 10px;
    cursor: pointer;
    border: none;
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.update-btn {
    background-color: #4a7290;
    color: white;
    margin-right: 10px;
}

.delete-btn {
    background-color: #c45757;
    color: white;
}


/* ------------------------------------Website Speakers Table-------------------------------*/
/* ------------------------------------Website Speakers Table-------------------------------*/
/* ------------------------------------Website Speakers Table-------------------------------*/

#websiteSpeakersTable {
    border-collapse: collapse;
    width: 100%;
    background: white;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    max-height: 510px;
}

#websiteSpeakersTable thead {
    position: sticky;
    top: 0;
}

#websiteSpeakersTable tbody {
    overflow-y: scroll;
    font-size: 14.5px;
}

#websiteSpeakersTable th, #websiteSpeakersTable td {
    padding: 5px;
    text-align: left;
}

#websiteSpeakersTable th {
    background-color: #102232;
    color: white;
    padding: 10px;
    position: sticky;
    top: 0;
}

#websiteSpeakersTable tr:nth-child(even) {
    background-color: white;
}

#websiteSpeakersTable tr:nth-child(odd) {
    background-color: #eef6ff;
}

.filter-container {
  padding: 5px 10px;
  background-color: #f4f4f4;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.filter-container select {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
  max-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insert-speakers-button-container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.insert-speakers-container table td{
    padding: 10px;
    text-align: left;
    font-size: 14.5px;
}

.speaker-insert-btn, .speaker-cancel-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.speaker-cancel-btn {
    background-color: #dc3545;
    color: white;
}

.speaker-insert-btn {
    background-color: #405c76;
    color: white;
}

.insert-speakers-container table tr:nth-child(even) {
  background-color: white;
}

.insert-speakers-container table tr:nth-child(odd) {
  background-color: #eef6ff;
}

.edit-input {
  width: 100%;
  padding: 3px 5px;
  font-size: 15px;
  border: 1px solid black;
  border-radius: 3px;
}





/* ------------------------------------Background Remover-------------------------------*/
/* ------------------------------------Background Remover-------------------------------*/
/* ------------------------------------Background Remover-------------------------------*/

.bg-remover-input-container {
    width: 81%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: fixed;
    top: 0;
    right: 0;
    overflow-y: auto;
    z-index: 999;
}

.background-remover-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-image: url('https://images.unsplash.com/photo-1621507179507-0d69a5066f59?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.file-upload-container {
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.file-upload-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1c3851;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.image-preview-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
}

.image-preview-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.image-preview-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: transform 0.3s ease;
    gap: 15px;
}

.image-preview-item:hover {
    transform: scale(1.02);
}

.original-image, .processed-image {
    max-width: 50%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

.download-container {
    text-align: center;
}

.download-btn {
    padding: 10px 20px;
    background-color: #12366b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: black;
  border: 1px solid black;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;

}
