/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  /* color: #2F4F4F; */
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header Styles */
header {
  background-color: #191970;
  color: white;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}
/* Header Navigation Styles */
/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #191970;
  color: white;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}


/* Rest of your existing nav styles... */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Keep all your existing nav link styles... */
header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.2s ease;
}

header nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

.Nav-auth-links {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.Nav-auth-links a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.Nav-auth-links a:first-child {
  background-color: rgba(255, 255, 255, 0.1);
}

.Nav-auth-links a:last-child {
  background-color: #4682B4;
}

.Nav-auth-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* User Profile Styles */
.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  background-color: #e2e8f0;
  border-radius: 5px;
}

.username {
  font-size: 1.2rem;
  background-color: #fff;
  border-radius: 100%;
  padding: 10px;
  color: #701956;
  font-weight: 3rem;
}


.logout-form {
    background: #191970;
  margin: 0;
}

.logout-btn {
  background: red;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: fff;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
      font-weight: 3rem;

}
#logout-btn{
  background-color: #c82333;
  font-weight: 2rem;
}
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Adjust auth links positioning */
.Nav-auth-links {
  margin-left: auto;
}


/* Auth Form Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
}

.auth-card h2 {
  color: #2F4F4F;
  text-align: center;
  margin-bottom: 1.8rem;
  font-weight: 600;
  font-size: 1.8rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4a5568;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.8);
}

.auth-form input:focus {
  outline: none;
  border-color: #4682B4;
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.2);
}

.auth-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #4682B4 0%, #5F9EA0 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  color: #4a5568;
}

.auth-links a {
  color: #4682B4;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Error Messages */
.error-message {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

/* Password Validation Indicator */
.password-strength {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #4a5568;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Form Styles */
form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2F4F4F;
  font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #4682B4;
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

/* Button Styles */
button {
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

button[type="submit"] {
  background-color: #228B22;
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(34, 139, 34, 0.2);
}

button[type="submit"]:hover {
  background-color: #1e7b1e;
  transform: translateY(-1px);
}

/* Delete Button Styles */
#delbtn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 5px rgba(220, 53, 69, 0.2);
}

.delbtn:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

th {
  background-color: #4682B4;
  color: white;
  text-align: left;
  padding: 1.2rem;
  font-weight: 500;
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) {
  background-color: #f8fafc;
}

tr:hover {
  background-color: #f0f7ff;
}

/* Total Box */
.totalbox {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
}

.totalbox p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.income {
  color: #228B22;
  font-weight: 600;
}

.expense {
  color: #dc3545;
  font-weight: 600;
}

/* Links */
a {
  color: #4682B4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

a:hover {
  color: #3a6d99;
  text-decoration: underline;
}

/* Project List */
ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

ul li {
  background-color: white;
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

ul li:hover {
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  
  header nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .Nav-auth-links {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .Nav-auth-links a {
    width: 100%;
    text-align: center;
  }
}


/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 1.2rem;
  }
    header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  
  header nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .Nav-auth-links {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .Nav-auth-links a {
    width: 100%;
    text-align: center;
  }

  table {
    display: block;
    overflow-x: auto;
    border-radius: 0;
  }
  
  form {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.flex {
  display: flex;
  gap: 1rem;
  align-items: center;
}