* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
}

body.login-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

.signup-btn, .login-btn-header {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.signup-btn {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.login-btn-header {
  background: #667eea;
  color: white;
}

/* Login Container */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.login-box {
  background: white;
  border-radius: 10px;
  padding: 50px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-heading {
  text-align: center;
  color: #333;
  font-size: 20px;
  margin-bottom: 30px;
}

/* Google Button */
.google-btn {
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.google-btn:hover {
  background: #efefef;
}

/* OR Separator */
.or-separator {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #999;
}

.or-separator::before,
.or-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.or-separator span {
  padding: 0 10px;
  font-size: 12px;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border 0.3s;
}

.form-input:focus {
  outline: none;
  border: 2px solid #667eea;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-container .form-input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
}

/* Login Button */
.login-button {
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.login-button:hover {
  background: #5568d3;
}

/* Forgot Password */
.forgot-password {
  text-align: center;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  margin-top: 15px;
  display: block;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Help Footer */
.help-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 20px;
}

.help-email {
  color: #000;
  text-decoration: none;
}

.help-email:hover {
  text-decoration: underline;
}

/* Register Page Styles */
body.register-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.register-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.register-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.register-box {
  background: white;
  border-radius: 10px;
  padding: 50px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.register-heading {
  text-align: center;
  color: #333;
  font-size: 20px;
  margin-bottom: 30px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.terms-label {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.terms-link {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

.register-button {
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.register-button:hover {
  background: #5568d3;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  transition: background 0.3s;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-secondary {
  background: #ddd;
  color: #333;
}

.btn-secondary:hover {
  background: #bbb;
}

.btn-delete {
  background: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
}

.btn-delete:hover {
  background: #c82333;
}

.view-only {
  color: #999;
  font-size: 12px;
}

/* Filter Section */
.filters-section {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin: 20px 0;
}

.filters-section h3 {
  margin-top: 0;
  color: #333;
}

.filter-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.filter-group select,
.filter-group input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border: 2px solid #667eea;
}

/* Insights Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.insight-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.insight-card h3 {
  color: #666;
  margin-top: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.insight-card .amount {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
}

.insight-card .amount.income {
  color: #28a745;
}

.insight-card .amount.expense {
  color: #dc3545;
}

.insight-card .amount.positive {
  color: #28a745;
}

.insight-card .amount.negative {
  color: #dc3545;
}

/* Insights Section */
.insights-section {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.insights-section h3 {
  color: #333;
  margin-top: 0;
}

.insights-section table {
  width: 100%;
  border-collapse: collapse;
}

.insights-section th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: bold;
  color: #333;
  border-bottom: 2px solid #ddd;
}

.insights-section td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.insights-section tr:hover {
  background: #f9f9f9;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.badge-income {
  background: #d4edda;
  color: #155724;
}

.badge-expense {
  background: #f8d7da;
  color: #721c24;
}

/* No Data Message */
.no-data {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

/* Welcome Section */
.welcome-section {
  background: #e8f4f8;
  border-left: 4px solid #667eea;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

.welcome-section p {
  margin: 10px 0;
  font-size: 16px;
}

.role-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

.role-badge.role-admin {
  background: #dc3545;
  color: white;
}

.role-badge.role-analyst {
  background: #667eea;
  color: white;
}

.role-badge.role-viewer {
  background: #28a745;
  color: white;
}

/* Menu Section */
.menu-section {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.menu-section h2 {
  margin-top: 0;
  color: #333;
}

.role-info {
  background: #f9f9f9;
  border-left: 3px solid #667eea;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.role-info h3 {
  margin-top: 0;
  color: #667eea;
}

.role-info p {
  margin: 10px 0;
  color: #666;
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Summary Page */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.summary-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-top: 5px solid #667eea;
  transition: transform 0.3s, box-shadow 0.3s;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.summary-card.income-card {
  border-top-color: #28a745;
}

.summary-card.expense-card {
  border-top-color: #dc3545;
}

.summary-card.balance-card {
  border-top-color: #667eea;
}

.summary-card.balance-card.positive {
  border-top-color: #28a745;
}

.summary-card.balance-card.negative {
  border-top-color: #ffc107;
}

.summary-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.summary-card h3 {
  color: #666;
  margin: 10px 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-amount {
  font-size: 32px;
  font-weight: bold;
  margin: 15px 0;
}

.summary-card.income-card .summary-amount {
  color: #28a745;
}

.summary-card.expense-card .summary-amount {
  color: #dc3545;
}

.summary-card.balance-card.positive .summary-amount {
  color: #28a745;
}

.summary-card.balance-card.negative .summary-amount {
  color: #ffc107;
}

.summary-label {
  color: #999;
  font-size: 12px;
  display: block;
}

/* Summary Details */
.summary-details {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-details h2 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 15px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.detail-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.detail-box label {
  display: block;
  color: #666;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.detail-value {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.detail-value.income {
  color: #28a745;
}

.detail-value.expense {
  color: #dc3545;
}

.detail-value.positive {
  color: #28a745;
}

.detail-value.negative {
  color: #ffc107;
}

/* Add Transaction Page */
.add-transaction-wrapper {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 40px;
  max-width: 700px;
  margin: 30px auto;
}

.add-transaction-wrapper h1 {
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.transaction-form {
  margin-top: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h2 {
  color: #667eea;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  margin-top: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border: 2px solid #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 12px;
  color: #999;
  font-weight: bold;
  font-size: 16px;
  pointer-events: none;
}

.input-wrapper input {
  padding-left: 35px;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: Arial, sans-serif;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.form-actions .btn {
  flex: 1;
  max-width: 200px;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .add-transaction-wrapper {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    max-width: 100%;
  }
}

/* Other styles */
h1,h2{
color:#333;
}

a{
display:block;
margin:10px;
padding:10px;
background:#4CAF50;
color:white;
width:200px;
text-decoration:none;
}

table{
border-collapse:collapse;
width:80%;
background:white;
}

th,td{
border:1px solid gray;
padding:10px;
}
