:root{
  --bg:#0a0e27;
  --card:#1a1f3a;
  --accent:#00ff41;
  --danger:#ff4444;
  --success:#00ff41;
  --muted:#666666;
  --border:#00ff41;
}
*{box-sizing:border-box}
body{
  font-family: 'Courier New', monospace;
  background: #0a0e27;
  margin:0; padding:20px;
  color:#00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    rgba(0, 255, 65, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1;
}
.container{
  max-width:1600px;
  margin:0 auto;
  position: relative;
  z-index: 2;
  border: 2px solid #00ff41;
  padding: 20px;
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2), inset 0 0 20px rgba(0, 255, 65, 0.05);
}
header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
  border-bottom: 2px dashed #00ff41;
  padding-bottom: 12px;
}
.logo {
  height: 40px;
  filter: brightness(1.2);
}
h1, h2, h3 {
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  font-weight: bold;
  letter-spacing: 2px;
}
header h1{margin:0}
form#monthForm{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
form#monthForm input,
form#monthForm button {
  background: #1a1f3a;
  color: #00ff41;
  border: 1px solid #00ff41;
  padding: 6px 10px;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  cursor: pointer;
}
form#monthForm button:hover {
  background: #00ff41;
  color: #0a0e27;
  text-shadow: none;
}
.csv{
  margin-left:8px;
  padding:6px 10px;
  background:#1a1f3a;
  color:#00ff41;
  border: 1px solid #00ff41;
  border-radius:0;
  text-decoration:none;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s;
}
.csv:hover {
  background: #00ff41;
  color: #0a0e27;
  text-shadow: none;
}
.summary{
  display:flex;
  gap:12px;
  margin-bottom:18px;
}
.card{
  background:var(--card);
  padding:12px;
  border-radius:0;
  flex:1;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), inset 0 0 15px rgba(0, 255, 65, 0.03);
  border: 1px solid #00ff41;
  color: #00ff41;
}
.card h3{margin:0 0 6px 0}
.amount{
  font-size:1.4rem;
  font-weight:700;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}
.amount.positive{color:#00ff41}
.amount.negative{color:#ff4444}
.left{
  float:left;
  width:320px;
  background: rgba(26, 31, 58, 0.8);
  padding: 12px;
  border: 1px dashed #00ff41;
  border-radius: 0;
  margin-right: 20px;
}
.right{
  margin-left:0;
  overflow: hidden;
  background: rgba(26, 31, 58, 0.8);
  padding: 12px;
  border: 1px dashed #00ff41;
  border-radius: 0;
}
.left form, .left h3{background:transparent}
.left label{
  display:block;
  margin-bottom:8px;
  color: #00ff41;
  font-family: 'Courier New', monospace;
}
.left input[type="text"], .left input[type="date"], .left input[type="number"], .left select{
  width:100%;
  padding:8px;
  border-radius:0;
  border:1px solid #00ff41;
  background: #0a0e27;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  margin-bottom: 8px;
}
.left input[type="text"]::placeholder,
.left input[type="date"]::placeholder,
.left input[type="number"]::placeholder {
  color: #666666;
}
.left button{
  margin-top:6px;
  padding:8px 12px;
  border-radius:0;
  background:#1a1f3a;
  color:#00ff41;
  border: 1px solid #00ff41;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.left button:hover {
  background: #00ff41;
  color: #0a0e27;
  text-shadow: none;
}
.categories{
  list-style:none;
  padding:0;
  margin:8px 0;
}
.categories li{
  background:#0a0e27;
  padding:6px;
  border-radius:0;
  margin-bottom:6px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border: 1px solid #00ff41;
  color: #00ff41;
}
.categories button{
  background:transparent;
  border:0;
  color:#ff4444;
  font-weight:700;
  cursor: pointer;
  font-family: 'Courier New', monospace;
}
.transactions{
  width:100%;
  border-collapse:collapse;
  background:#0a0e27;
  border-radius:0;
  overflow:hidden;
  border: 1px solid #00ff41;
}
.transactions th, .transactions td{
  padding:8px;
  border-bottom:1px solid #00ff41;
  text-align:left;
  color: #00ff41;
  font-family: 'Courier New', monospace;
}
.transactions th{
  background:#1a1f3a;
  border-bottom: 2px solid #00ff41;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  font-weight: bold;
}
.transactions tr:hover {
  background: rgba(0, 255, 65, 0.05);
}
.transactions td .positive{color:#00ff41}
.transactions td .negative{color:#ff4444}
.transactions a {
  color: #00ff41;
  text-decoration: underline;
  cursor: pointer;
}
.transactions a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}
footer{
  margin-top:24px;
  color:#00ff41;
  text-align: center;
  border-top: 1px dashed #00ff41;
  padding-top: 12px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}
@media (max-width:900px){
  .left, .right{
    margin:0;
    width:auto;
    float: none;
  }
  .right{margin-top:16px}
}

/* Login Page Styles */
.login-page {
  color: #00ff41;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.login-page header {
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border: 2px solid #00ff41;
  padding: 20px;
}

.login-logo {
  height: 300px;
  filter: brightness(1.2);
}

.login-page .left {
  float: none;
  margin: 20px auto;
  background: rgba(26, 31, 58, 0.9);
  padding: 20px;
  border-radius: 0;
  border: 2px solid #00ff41;
  width: 300px;
}

.login-page input[type="text"],
.login-page input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #0a0e27;
  color: #00ff41;
  border: 1px solid #00ff41;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.login-page button {
  width: 100%;
  padding: 10px;
  background: #1a1f3a;
  color: #00ff41;
  border: 1px solid #00ff41;
  border-radius: 0;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}

.login-page button:hover {
  background: #00ff41;
  color: #0a0e27;
  text-shadow: none;
}

.chart-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.chart-container > div {
  flex: 1;
  background: rgba(26, 31, 58, 0.8);
  padding: 12px;
  border-radius: 0;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), inset 0 0 15px rgba(0, 255, 65, 0.03);
  border: 1px solid #00ff41;
}

