*{
    margin: 0;
    padding: 0;
 
}



h1{
    text-decoration: underline;
}





.user-card {
  width: 320px;
  padding: 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  margin: 10px;
}

.name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.email {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}


#alluser{
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    height: 125px;
}

.bg{
    background-color: yellow;
}

#sr{
  font-size: large;
  margin-left: 20px;
}
#searchinput{
  margin: 20px;
  margin-left: 20px;
  border: none;
  height: 50px;
  width: 50%;
  max-width: 800px;
  border-radius: 10px;
  padding: 2px;

}


/* Main Panel Container */
.main {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.main:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Labels */
.main label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.main label:first-of-type {
  margin-top: 0;
  font-size: 18px;
  color: #667eea;
}

/* File Input */
#fileInput {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 15px;
  color: #555;
  border: 3px dashed #667eea;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

#fileInput:hover {
  border-color: #764ba2;
  background: linear-gradient(135deg, #f0f2ff 0%, #dfe3ff 100%);
  transform: scale(1.02);
}

#fileInput:focus {
  border-style: solid;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#fileInput::file-selector-button {
  padding: 10px 20px;
  margin-right: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#fileInput::file-selector-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Upload Button */
#cloud {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#cloud:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

#cloud:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Progress Bar Container */
#progressBar {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  appearance: none;
  background: #e8ebff;
  border: 2px solid #d0d5f6;
}

#progressBar::-webkit-progress-bar {
  background: #e8ebff;
  border-radius: 14px;
}

#progressBar::-webkit-progress-value {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 14px;
  transition: width 0.4s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

#progressBar::-moz-progress-bar {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Progress Text */
#progressText {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 0.5px;
}

/* Sender and Receiver Info */
.main b {
  font-weight: 700;
  font-size: 15px;
  color: #2c3e50;
  display: inline-block;
  min-width: 80px;
}

.main span {
  color: #667eea;
  font-size: 15px;
  font-weight: 600;
}

.main br {
  display: block;
  margin-bottom: 12px;
  content: "";
}

#sender,
#reciever {
  padding: 4px 12px;
  background: #f0f2ff;
  border-radius: 6px;
  display: inline-block;
  margin-left: 8px;
}

/* Textarea */
#message {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 16px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  border: 2px solid #e0e4f0;
  border-radius: 12px;
  background: #fafbff;
  resize: vertical;
  transition: all 0.3s ease;
  outline: none;
}

#message:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#message::placeholder {
  color: #a0a8c0;
}

/* Checkbox Section */
label[for="es"] {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
}

#ensure {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  cursor: pointer;
  accent-color: #667eea;
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

#ensure:hover {
  transform: scale(1.3);
}

#ensure:checked {
  animation: checkboxPop 0.3s ease;
}

@keyframes checkboxPop {
  0%, 100% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.4);
  }
}

/* Send Button */
#send {
  display: block;
  width: 100%;
  padding: 18px;
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

#send::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

#send:hover:not(:disabled)::before {
  left: 100%;
}

#send:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

#send:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#send:disabled {
  background: linear-gradient(135deg, #b0b5c9 0%, #9ca1b5 100%);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main {
    margin: 20px;
    padding: 30px;
  }
  #searchinput{
    width: 90%;
  }

  .main label {
    font-size: 15px;
  }

  .main label:first-of-type {
    font-size: 17px;
  }

  #fileInput {
    padding: 14px;
    font-size: 14px;
  }

  #cloud {
    padding: 12px;
    font-size: 15px;
  }

  #send {
    padding: 16px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .main {
    margin: 16px;
    padding: 24px;
    border-radius: 16px;
  }
  #searchinput{
    width: 90%;
  }

  .main label {
    font-size: 14px;
    margin-top: 20px;
  }

  .main label:first-of-type {
    font-size: 16px;
  }

  #fileInput {
    padding: 12px;
    font-size: 13px;
  }

  #fileInput::file-selector-button {
    padding: 8px 16px;
    font-size: 13px;
    margin-right: 12px;
  }

  #cloud {
    padding: 12px;
    font-size: 14px;
  }

  #message {
    min-height: 100px;
    padding: 14px;
    font-size: 14px;
  }

  #progressBar {
    height: 24px;
    margin-top: 20px;
  }

  #progressText {
    font-size: 14px;
    margin-top: 8px;
  }

  .main b,
  .main span {
    font-size: 14px;
  }

  label[for="es"] {
    font-size: 14px;
  }

  #ensure {
    width: 20px;
    height: 20px;
  }

  #send {
    padding: 14px;
    font-size: 15px;
    margin-top: 24px;
  }
}

#info{
  color: #494545;
  font-size: smaller;
}