
body {
  margin: 0;
  padding: 0;
  font-family: 'Vazirmatn', sans-serif;
  background: #121212;
  color: white;
}


.title {
  text-align: center;
  margin-top: 40px;
  font-size: 28px;
}

.datetime {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #aaaaaa;
}


.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}


.card {
  position: relative;
  width: 38%;
  background: #1f1f1f;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flag-icon {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
}

.currency-info {
  text-align: right;
  margin-right: 8px;
}

.currency-name {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

.currency-code {
  font-size: 11px;
  color: #aaaaaa;
  margin-top: 2px;
}

.change {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
}

.change.up {
  color: #00ff6e;
}

.change.down {
  color: #ff4e4e;
}

.currency-price {
  margin-top: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

.delete-btn {
  position: absolute;
  top: 8px;
  left: 3px;
  right: 8px;
  background: transparent;
  border: none;
  color: #ff5c5c;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.card:hover .delete-btn {
  display: block;
}


.ad-card {
  width: calc(38% * 2 + 15px);
  background-color: #292929;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.ad-card:hover {
  transform: scale(1.02);
}

.ad-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.ad-card p {
  color: #00ffae;
  font-size: 14px;
  margin: 0;
}


.bottom-bar {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1f1f1f;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  padding: 10px 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.bottom-text {
  color: #ffffff;
  font-size: 16px;
  font-family: 'Vazirmatn', sans-serif;
}

.bottom-bar button {
  background-color: #0088cc;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-bar button:hover {
  background-color: #00c38f;
}


.currency-add-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.currency-add-content {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
}

.currency-add-content select,
.currency-add-content button {
  width: 90%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
}

.cancel-btn {
  background-color: #ff4e4e;
  color: white;
  border: none;
}


.modal {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #1f1f1f;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
}

.modal-content select,
.modal-content input {
  width: 90%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
}

.modal-content button {
  margin-top: 10px;
  padding: 10px 15px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
}


.top-telegram {
  position: absolute;
  top: 45px;
  left: 15px;
  z-index: 1000;
}

.top-telegram a {
  display: inline-flex;
  align-items: center;
  background-color: #0088cc;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-family: 'Vazirmatn', sans-serif;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  transition: background 0.3s;
}

.top-telegram a:hover {
  background-color: #0075b6;
}


@media screen and (max-width: 768px) {
  .card {
    width: 45%;
  }

  .ad-card {
    width: 95%;
  }
}

.sidebar-toggle-btn {
  width: 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  transition: background-color 0.3s;
}

#currency-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: #121212;
  color: rgb(255, 255, 255);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  transition: left 0.3s ease-in-out;
  z-index: 50;
  overflow-y: auto;
}
#currency-sidebar.open {
  left: 0;
}
.menu-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
}
.menu-modal-content {
  background-color: #121212;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.menu-modal-content a, .menu-modal-content button {
  background-color: #2563eb;
  color: rgb(255, 255, 255);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.menu-modal-content a:hover, .menu-modal-content button:hover {
  background-color: #1d4ed8;
}
.menu-btn {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.menu-btn:hover {
  background-color: #1d4ed8;
}

#app-mn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background: linear-gradient(to bottom, #002233, #111);
    border: 1px solid #004466;
    border-radius: 10px;
    padding: 15px;
    width: 250px;
    z-index: 1000;
}


.close-btn:hover {
    color: #ff3333;
}

.app-btn {
    display: flex;
    align-items: center;
    background-color: #003344;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.app-btn:hover {
    background-color: #004455;
}

.app-btn i {
    margin-left: 10px;
}

.close-btn {
    position: absolute;
    top: 0px;
    /* فاصله بیشتر از بالا */
    left: 50%;
    /* وسط افقی */
    transform: translateX(-50%);
    /* دقیقاً وسط */
    background: transparent;
    border: none;
    color: #ff5c5c;
    font-size: 24px;
    /* فونت بزرگ‌تر */
    padding: -8px;
    /* فضای بیشتر دور دکمه */
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff3333;
    /* رنگ روشن‌تر موقع هاور */
}

#alert-price-input{
    color: #000000;
}

#alert-direction-select {
    color: #000000;
}

#alert-currency-select{
    color: #000000;
}

#backgroundMusic {
    display: none;
}

button {
    cursor: pointer;
    background-color: #ff0000;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #cc0000;
}

button.muted {
    background-color: #ff0000;

}

button.muted:hover {
    background-color: #ff0000;
}