body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #e3cdcb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Login Container === */
.login-container {
  background-color: #111;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 10px #bf574d;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  text-align: center;
  overflow-x: auto;
  position: relative;
}

.login-container h2 {
  color: #bf574d;
  margin-bottom: 20px;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background-color: #222;
  color: #e3cdcb;
  font-size: 16px;
}

.login-container input:focus,
.login-container select:focus {
  outline: none;
  box-shadow: 0 0 5px #bf574d;
}

.options {
  margin: 15px 0;
  text-align: left;
  font-size: 14px;
  color: #e3cdcb;
}

/* === Buttons === */
.login-container button,
.admin-header button,
.delete-btn,
.go-btn {
  background-color: #bf574d;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-container button:hover,
.admin-header button:hover,
.delete-btn:hover,
.go-btn:hover {
  background-color: #e3cdcb;
  color: #000;
}

/* === Admin Header === */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h2 {
  color: #bf574d;
}

/* === Table === */
table {
  width: 100%;
  border-collapse: collapse;
  color: #e3cdcb;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #444;
}

th {
  background-color: #111;
  color: #bf574d;
}

/* === Popup === */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup.show {
  display: flex;
}

.popup-content {
  background-color: #111;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px #bf574d;
  text-align: center;
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-content h3 {
  color: #bf574d;
  font-size: 20px;
  margin-bottom: 10px;
}

.popup-content input[type="text"],
.popup-content input[type="password"],
.popup-content select {
  width: 100%;
  padding: 12px;
  background-color: #222;
  color: #e3cdcb;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  margin-bottom: 12px;
}

.popup-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.popup-actions button {
  flex: 1;
  background-color: #bf574d;
  color: #000;
  padding: 10px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.popup-actions button:hover {
  background-color: #e3cdcb;
  color: #000;
}

/* === TOP INFO === */
.top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  text-align: right;
  font-size: 14px;
  color: #e3cdcb;
}

.top-right span,
.top-right p {
  display: block;
  margin-bottom: 5px;
}

.top-right button {
  background-color: #bf574d;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  margin-left: 5px;
  cursor: pointer;
}

.top-right button:hover {
  background-color: #e3cdcb;
  color: #000;
}

/* === Proxy Container === */
.proxy-container {
  background-color: #111;
  border: 1px solid #bf574d;
  margin: 50px auto;
  padding: 25px;
  width: calc(100% - 1cm);
  max-width: 1300px;
  box-shadow: 0 0 10px #bf574d;
  border-radius: 6px;
}

/* Proxy fields between textareas */
.proxy-fields {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}

.proxy-fields input[type="text"] {
  width: 100%;
  padding: 12px;
  background-color: #222;
  border: none;
  border-radius: 5px;
  color: #e3cdcb;
  font-size: 15px;
}

/* Textareas side by side */
.textarea-row {
  display: flex;
  justify-content: center;
  gap: 1cm; /* المسافة بالضبط 1cm بيناتهم */
  margin-top: 20px;
}

.textarea-row > div {
  flex: 0 0 45%;
}

textarea {
  width: 100%;
  height: 150px;
  resize: none;
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #bf574d;
  padding: 10px;
  font-family: monospace;
  font-size: 13px;
}


/* Get Proxies Button */
.green-button {
  background-color: green;
  color: white;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.green-button:hover {
  background-color: #00cc00;
}


.proxy-info-box {
    text-align: right;
    margin-bottom: 20px;
    color: #e3cdcb;
    font-size: 14px;
}

.proxy-info-box button {
    background-color: #bf574d;
    color: white;
    border: none;
    padding: 4px 10px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 13px;
}



/*bitton o input taht area new proxies*/


.password-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.password-row input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  background-color: #222;
  border: none;
  border-radius: 4px;
  color: #e3cdcb;
}

.password-row button {
  background-color: #bf574d;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}

.password-action {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.password-action input {
  flex: 1;
  background-color: #2b2b2b;
  color: white;
  border: 1px solid #444;
  padding: 8px;
  border-radius: 3px;
}

.password-action button {
  padding: 8px 14px;
  background-color: #bf574d;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
/* change pwd*/

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background-color: #1a1a1a;
  border: 1px solid #bf574d;
  padding: 20px;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0 0 10px #bf574d;
  text-align: center;
}



// fix issue 

.popup-content {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
}

.popup-content input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border: none;
  border-radius: 5px;
  background-color: #222;
  color: white;
}

.popup-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-actions button {
  flex: 1;
}


.popup-content input {
  box-sizing: border-box;
}
