/****** SHORTCODE STYLE ******/
.cpcc-crypto-card {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  font-family: Arial, sans-serif;
  margin: 0 auto;
  display: block;
}

.cpcc-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 16px; /* Static font size */
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.cpcc-card-body {
  text-align: center;
  padding: 20px 0;
}

.cpcc-crypto-info {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px; /* Static font size */
}

.cpcc-crypto-info .cpcc-crypto-value,
.cpcc-crypto-info .cpcc-currency-value {
  margin: 0 10px;
}

.cpcc-crypto-symbol, .cpcc-currency-symbol {
  font-size: 12px; /* Static font size */
  margin-top: -5px; /* Adjust to center symbols with values */
  line-height: 1;
}

.cpcc-equals {
  font-size: 20px; /* Static font size */
  margin: 0 10px;
  align-self: center;
}

.cpcc-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px; /* Static font size */
  padding-top: 10px;
  border-top: 1px solid #444;
}

.cpcc-card-footer .cpcc-change {
  font-weight: bold;
}

.cpcc-card-footer .cpcc-volume1 {
  font-weight: bold;
}

.cpcc-volume {
  font-size: 12px; /* Static font size */
  padding-top: 10px;
  border-top: 1px solid #444;
}

/* Custom dropdown styles */
.cpcc-dropdown {
  position: relative;
}

#cpcc-crypto-select, #cpcc-currency-select {
  -webkit-appearance: none; /* Remove default dropdown arrow */
  -moz-appearance: none; /* Remove default dropdown arrow */
  appearance: none; /* Remove default dropdown arrow */
  background: transparent; /* Transparent background */
  border: none; /* No border */
  color: white;
  font-size: 14px; /* Static font size */
  padding: 0 0 2px 0;
  border-bottom: 1px solid white; /* Underline */
  cursor: pointer;
  width: 80px; /* Adjust width as needed */
  text-align: center;
}

#cpcc-crypto-select option, #cpcc-currency-select option {
  background-color: #333;
  color: white;
}

.cpcc-crypto-value-input {
  background: none;
  color: white;
  border: none;
  font-size: 16px; /* Static font size */
  text-align: center;
  width: 80px;
  outline: none;
}


/****** ADMIN PANEL STYLE ******/
/* Container layout */
.cpt-crypto-settings-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  align-items: flex-start;
}

/* Settings and Preview Boxes */
.cpt-crypto-settings-box, .cpt-crypto-preview-box {
  width: 48%;
  padding: 20px;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.cpt-crypto-settings-box:hover, .cpt-crypto-preview-box:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Box headers */
.cpt-crypto-settings-box h2, .cpt-crypto-preview-box h2 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #0073aa;
}

/* Shortcode section */
.cpt-crypto-shortcode-section {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f1f1f1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Shortcode textarea */
#shortcode-textarea {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: monospace;
  padding: 10px;
  margin-bottom: 10px;
}


/* Buttons */
.cpt-button {
  width: 40%;
  margin: 0 auto;
  display: block;
  background-color: #0073aa;
  border-color: #0073aa;
  color: #fff;
  box-shadow: none;
  text-align: center;
  cursor: pointer; 
  padding: 10px 20px; 
  border-radius: 5px; 
}

.cpt-button:hover {
  background-color: #005177;
  border-color: #005177;
}


/* Responsive Design */
@media (max-width: 900px) {
  .cpt-crypto-settings-box, .cpt-crypto-preview-box {
    width: 100%;
  }
}

.cpt-crypto-settings-box h2, .cpt-crypto-preview-box h2 {
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;   /* Adjust the width */
  height: 20px;  /* Adjust the height */
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 20px;  /* Makes it rounded */
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;  /* Smaller knob size */
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;  /* Makes the knob round */
}

input:checked + .slider {
  background-color: #2196F3; /* Color when active */
}

input:checked + .slider:before {
  transform: translateX(20px); /* Moves the knob to the right */
}
