/* ===== MODERN GLOSSY BUDGET APP THEME ===== */
:root {
  --primary-color: #007bff;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --background-gradient: linear-gradient(135deg, #cce5ff, #e2f0ff);
  --card-glass: rgba(255, 255, 255, 0.3);
  --text-color: #222;
  --border-radius: 16px;
  --blur-amount: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ===== Global Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  background: var(--background-gradient);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 25px;
  color: var(--text-color);
}

/* ===== App Container ===== */
.app-container {
  width: 100%;
  max-width: 650px;
  background: var(--card-glass);
  backdrop-filter: blur(var(--blur-amount));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}
.app-container:hover {
  transform: translateY(-3px);
}

/* ===== Header ===== */
header {
  text-align: center;
  margin-bottom: 30px;
}
#app-name {
  font-size: 1.8em;
  font-weight: 700;
  background: linear-gradient(to right, #007bff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header p {
  color: #555;
  font-size: 0.95em;
}

/* ===== Summary Cards ===== */
.summary-cards {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  text-align: center;
  padding: 20px 15px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.card h2 {
  font-size: 1em;
  margin-bottom: 8px;
  color: #555;
}
.card .amount {
  font-size: 1.6em;
  font-weight: 700;
}

#balance-card {
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.income {
  background: linear-gradient(135deg, #c8f7d4, #d4edda);
}
.income .amount {
  color: var(--success-color);
}

.expenses {
  background: linear-gradient(135deg, #f8d7da, #f2b8b5);
}
.expenses .amount {
  color: var(--danger-color);
}

/* ===== Add Button ===== */
.add-btn {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #007bff, #00bfff);
  color: white;
  font-size: 2em;
  border: none;
  cursor: pointer;
  line-height: 60px;
  text-align: center;
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.add-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.6);
}

/* ===== Transactions Section ===== */
.transactions-section {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.transactions-list-container {
  flex: 1;
}
.transactions-list-container h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}
.transaction-list {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
}
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.transaction-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.02);
}
.transaction-description {
  font-weight: 600;
}
.transaction-amount {
  font-weight: 500;
  margin-left: 10px;
}
.transaction-actions button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  margin-left: 10px;
  transition: color 0.2s ease;
}
.edit-btn {
  color: var(--primary-color);
}
.edit-btn:hover {
  color: #0056b3;
}
.delete-btn {
  color: var(--danger-color);
}
.delete-btn:hover {
  color: #a71d2a;
}

/* ===== Action Buttons ===== */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.action-buttons button {
  padding: 12px;
  font-size: 1em;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  border: none;
  transition: all 0.3s ease;
}
#save-budget-btn {
  background: linear-gradient(to right, #28a745, #34ce57);
  color: white;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}
#save-budget-btn:hover {
  transform: scale(1.05);
}
#reset-budget-btn {
  background: linear-gradient(to right, #dc3545, #ff6b6b);
  color: white;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}
#reset-budget-btn:hover {
  transform: scale(1.05);
}

/* ===== Modals ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.3s ease forwards;
}
.modal_reset {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.3s ease forwards;
}
.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  margin: 10% auto;
  padding: 25px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease forwards;
}
.modal_reset_content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  margin: 10% auto;
  padding: 25px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease forwards;
}

.close-btn {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #333;
}

/* ===== Modal Form Styling ===== */
#transaction-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}
#transaction-form input,
#transaction-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  transition: box-shadow 0.2s;
}
#transaction-form input:focus,
#transaction-form select:focus {
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
  outline: none;
}
#modal-add-btn,
#confirm-name-btn {
  background: linear-gradient(to right, #007bff, #00bfff);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.myInput
{
  margin: 1.2rem 0rem;
  padding: 0.8rem;
  border-radius: 0.3rem;
  width: 100%;
}
.myNamPara
{
  margin: 0.4rem 0rem;
}
.myTittle
{
  margin: 0.2rem 0rem;
  font-size: 1.5rem;
  font-weight: bolder;
}
input
#modal-add-btn:hover,
#confirm-name-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}
.modal_reset_question
{
  font-weight: lighter;
  font-size: 1rem;
  margin: 1.2rem;
}
/* ===== Reusable Button Styles ===== */
.btn {
  flex: 1; /* Make buttons equal width if inside a flex container */
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  text-align: center;
  margin: 0 5px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Button Variants ===== */
.btn-danger {
 background: linear-gradient(to right, #dc3545, #ac4953);
}
.btn-secondary {
 background: linear-gradient(to right, #007bff, #00bfff); 
}


/* ===== Flex container for modal buttons ===== */
.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .summary-cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
  }
  .transactions-section {
    flex-direction: column;
  }
  .app-container {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 1.4em;
  }
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .transaction-actions {
    align-self: flex-end;
    margin-top: 8px;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}




