/* Overall dark background and Matrix-style theme */
body {
    background: black;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

h2, h3{
	font-size: 20px !important;
	text-transform: uppercase;
	color: #01ea01 !important;
}
/* Container for the dashboard UI */
.wp-web3-dpos-container {
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Form styling */
.wp-web3-dpos-form {
    margin-bottom: 20px;
}

.wp-web3-dpos-form label {
    display: block;
    margin-bottom: 5px;
}

.wp-web3-dpos-form input,
.wp-web3-dpos-form button {
    padding: 10px;
    margin: 5px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Connect Wallet Button */
#walletAddressDisplay{
	color:#fff;
}
.connect-button{
  background: #00b74a;
  border: none;
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.connect-button:hover {
  background: #00a142;
}

#confirmShiftBtn, .action-button{
	background: #000 !important;
	color: #01ea01 !important;
	padding: 13px;
	border: 1px solid #01ea01 !important;
	margin-top: 5px;
	cursor: pointer;
}
#cancelShiftBtn, #cancelDelegateBtn{
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  background: #000;
	color: #01ea01;
	border: 1px solid #01ea01;
}

#delegateAmountInput, #shiftNodeSelect, #shiftAmountInput{
	border: 1px solid #01ea01;
	color:#01ea01;
}
#shiftNodeSelect{
	font: inherit;
}
#confirmDelegateBtn{
	background: #000;
	color: #01ea01;
	padding: 13px;
	border: 1px solid #01ea01;
	margin-top: 5px;
	cursor: pointer;
}

/* Stats container */
.stats-container {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  justify-content: center;
}

.stat-box {
  background: rgba(0, 0, 0, 0.89);
  border: 1px solid #0f0;
  border-radius: 6px;
  padding: 10px;
  min-width: 180px;
  text-align: center;
}

.stat-box p {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  color: #0f0;
}

.stat-box h3 {
  margin: 5px 0 0;
  font-size: 20px;
  color: #0f0;
}

/* Responsive table container */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Node table */
.node-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

body:not(.woocommerce-cart) .main-content table tr:nth-child(2n+1){
	background: rgb(6, 6, 6) !important;
}

#nodeTableBody td {
  background: #000;
}

.node-table th,
.node-table td {
  border: 1px solid #0f0 !important;
  padding: 10px !important;
  text-align: center !important;
  color: #0f0 !important;
}

.node-table th {
  background: rgba(0, 255, 0, 0.2) !important;
}

/* Action buttons */
.action-button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  margin: 2px;
  cursor: pointer;
  font-size: 14px;
}

.action-button:hover {
  background: #0069d9;
}

.claim-button {
  background: #28a745;
}

.claim-button:hover {
  background: #218838;
}

/* Delegate Modal */
.modal {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #111;
  border: 1px solid #0f0;
  border-radius: 8px;
  padding: 20px;
  width: 400px;
  color: #0f0;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

/* Notification area */
#notificationArea {
  margin-top: 20px;
  color: #0f0;
  font-size: 14px;
}

.btn-neon{
  width:100%;
  transition: 0.4s;
  border-radius: 5px;
}

.btn-neon > button{
  width:100%;
  border-radius: 5px;
  background:none;
  padding: 0.7rem;
  font-size: 100%;
  transition: 0.3s;
  display:inline;
  text-transform: uppercase;
} 

.btn-neon > button:hover{
  border: 2px solid #eee;
  color: #eee;
}

.neon-green > button{
    color: #0a3;
    border: 2px solid #0a3;
    box-shadow: inset 0px 0px 15px 0px rgba(36,255,120,0.5);
}

.neon-green > button:hover{
  box-shadow: inset 0px 0px 20px 6px rgba(36,255,120,1);
  text-shadow: 0px 0px 10px rgba(36,255,120,1);
}
.neon-green:hover{
  box-shadow: 0px 0px 20px 6px rgba(36,255,120,1);
}

.neon-red > button{
    color: #a33;
    border: 2px solid #a33;
  box-shadow: inset 0px 0px 15px 0px rgba(255,100,100,0.5);
}
.neon-red > button:hover{
  box-shadow: inset 0px 0px 20px 6px rgba(255,100,100,1);
  text-shadow: 0px 0px 10px rgba(255,100,100,1);
}

.neon-red:hover{
  box-shadow: 0px 0px 20px 6px rgba(255,100,100,1);
}

.neon-blue > button{
    color: #07a;
    border: 2px solid #07a;
  box-shadow: inset 0px 0px 15px 0px rgba(36,142,255,0.5);
}

.neon-blue > button:hover{
  box-shadow: inset 0px 0px 20px 6px rgba(36,142,255,1);
  text-shadow: 0px 0px 10px rgba(36,142,255,1);
}

.neon-blue:hover{
  box-shadow: 0px 0px 20px 6px rgba(36,142,255,1);
}

.neon-default > button{
    color: #777;
    border: 2px solid #555;
  box-shadow: inset 0px 0px 15px 0px rgba(150,150,150,0.5);
}

.neon-default > button:hover{
  box-shadow: inset 0px 0px 20px 6px rgba(150,150,150,1);
  text-shadow: 0px 0px 10px rgba(150,150,150,1);
}

.neon-default:hover{
  box-shadow: 0px 0px 20px 6px rgba(150,150,150,1);
}


.neon-yellow > button{
    color: #aa3;
    border: 2px solid #aa3;
  box-shadow: inset 0px 0px 15px 0px rgba(180,180,20,0.5);
}

.neon-yellow > button:hover{
  box-shadow: inset 0px 0px 20px 6px rgba(180,180,20,1);
  text-shadow: 0px 0px 10px rgba(180,180,20,1);
}

.neon-yellow:hover{
  box-shadow: 0px 0px 20px 6px rgba(180,180,20,1);
}

@media screen and (max-width: 1024px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-web3-dpos-container {
        padding: 10px;
    }
}

/* Additional responsiveness for tables and buttons */
@media (max-width: 480px) {
  .node-table th,
  .node-table td {
    padding: 8px !important;
    font-size: 12px !important;
  }
  .stat-box {
    min-width: 140px;
    padding: 8px;
  }
  .connect-button {
    padding: 10px 16px;
    font-size: 12px;
  }
	.stats-container{display:block;}
}

/* Ensure the canvas (Matrix animation) is behind the UI */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}
