/* assets/css/style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e2a33;
  color: white;
  padding: 10px 20px;
}

.nav-right-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-right li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  background: #575757;
  border-radius: 4px;
}

.profile {
  position: relative;
  cursor: pointer;
}

.profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  padding: 10px;
  background: white;
  color: #333;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 150px;
  z-index: 100;
}

.profile-dropdown p {
  margin: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  font-weight: bold;
}

.profile-dropdown a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.profile-dropdown a:hover {
  background: #f5f5f5;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7f8;
}

.auth-box {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background-color: #1e2a33;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #2d3f4d;
}

.auth-switch {
  margin-top: 15px;
  font-size: 14px;
}

.auth-switch a {
  color: #4c5df3;
  text-decoration: none;
}

.show-password {
  text-align: left;
  margin-top: 5px;
  font-size: 14px;
}

.error {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Container */
.container {
  width: 95%;
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
}

/* Forms */
.form-container form {
  display: flex;
  flex-direction: column;
}

.form-container input,
.form-container select {
  padding: 10px;
  margin: 8px 0 15px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-container button {
  padding: 10px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.form-container button:hover {
  background: #575757;
}

/* Subscription list */
.subscription-list {
  margin-top: 30px;
}
.subscription-item {
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}
.action-buttons a {
  margin-right: 10px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
}
.edit-btn {
  background: #007BFF;
}
.delete-btn {
  background: #dc3545;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
  background-color: #f8fdfa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.styled-table thead tr {
  background-color: #f0f2f5;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.styled-table tr:hover {
  background-color: #f1f7ff;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  margin-right: 6px;
  display: inline-block;
  color: #fff;
}

.btn-edit {
  background-color: #00b8f4;
}

.btn-delete {
  background-color: #f44336;
}


/* Calendar styling */
#calendar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar-day {
  padding: 10px;
  background: #e9e9e9;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
}
.calendar-day.today {
  background: #c8e6c9; /* Green for current day */
}
.calendar-day.due {
  background: #ffcdd2; /* Red for payment due */
}

/* Analysis Grid */
.analysis .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.analysis .grid-item {
  background: #f9f9f9;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
.error {
  color: #dc3545;
  margin-bottom: 15px;
}
.success {
  color: #28a745;
  margin-bottom: 15px;
}

.subscription-info-box {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  font-size: 15px;
}

.subscription-info-box h2 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #333;
}

.subscription-info-box h3 {
  margin-top: 20px;
  font-size: 18px;
  color: #444;
}

.subscription-info-box p, 
.subscription-info-box ul, 
.subscription-info-box ol {
  margin-top: 10px;
  line-height: 1.6;
}

.subscription-info-box ul, 
.subscription-info-box ol {
  padding-left: 20px;
}


