/* General page background */

body {
    background: #f5f7fa;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}



/* Navbar style */
.navbar {
    background: #343a40;
    padding: 15px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.navbar-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.navbar-links a {
    color: #f8f9fa;
    text-decoration: none;
    margin-right: 20px;
    font-size: 16px;
}

.navbar-links a:hover {
    color: #17a2b8;
}

.logout-link {
    color: #ffc107;
}

.logout-link:hover {
    color: #ffca2c;
}

/* Dashboard layout */

.dashboard-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

.dashboard-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.welcome-heading {
    font-size: 32px;
    margin-bottom: 30px;
    color: #212529;
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #343a40;
}

.detail {
    color: #555;
    font-weight: normal;
    margin: 5px 0;
    font-size: 16px;
}

/* Button style */
.btn {
    display: inline-block;
    background: #17a2b8;
    color: white;
    padding: 12px 24px;
    margin: 10px 5px;
    border-radius: 6px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #138496;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
    }
    .navbar-links a {
        margin: 10px 0;
    }
    .dashboard-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
}

.input-field {
    width: 100%;
    padding: 10px;
    margin: 8px 0 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Profile Page Form Styling */

form {
    margin-top: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 25px; /* Increased from 20px */
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px; /* Increased from 8px */
    color: #343a40;
}

.form-group input {
    width: 100%;
    padding: 12px; /* Increased padding */
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded more nicely */
    font-size: 16px;
    background: #f9f9f9;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #17a2b8; /* Nice focus color */
    outline: none;
    background: #ffffff;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* for the new layout cards */

.dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 30px !important;
  max-width: 1000px !important;
  margin: 60px auto !important;
  padding: 20px !important;
}

/* Stripe Elements Styling Fix */

.StripeElement {
  width: 100% !important;
  max-width: 350px; /* or a suitable width */
  padding: 10px !important; /* or adjust as needed */
  box-sizing: border-box !important;
}


.StripeElement iframe {
    height: 100% !important; /* Force iframe to fill */
    width: 100% !important;
}

.StripeElement--focus {
    box-shadow: 0 0 0 2px #6366f1;
}


.card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h2 {
  font-size: 20px;
  color: #343a40;
  margin-bottom: 15px;
}

.card p {
  font-size: 15px;
  margin: 8px 0;
}

.card .btn {
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
}

/* FOR THE SIGNUP PAGE NEW PAYOUT  */

/* === Signup Page Styles === */
.signup-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto;
}

.signup-form, .signup-summary {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.signup-form {
  flex: 2;
}

.signup-summary {
  flex: 1;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.signup-form label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: bold;
}

.signup-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.btn-primary {
  margin-top: 30px;
  width: 100%;
  background: #0077a3;
  color: white;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #005f86;
}

/* New code */

.full-width {
    flex: 1 1 100%;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.invoice-table th {
    background-color: #f0f0f0;
}

.paid {
    color: green;
    font-weight: bold;
}

.unpaid {
    color: red;
    font-weight: bold;
}


.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    flex: 1 1 300px;
}

/* Email-specific styling */

.email-body {
    background-color: #f4f4f7;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.email-container {
    max-width: 600px;
    margin: auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.email-container h1 {
    color: #4f46e5;
}

.email-container p {
    color: #333333;
    line-height: 1.5;
}

.email-footer {
    margin-top: 20px;
    font-size: 12px;
    color: #888888;
    text-align: center;
}


/* ADMIN DASH CUSTOMERS LIST */

/* Table styling */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.styled-table th, .styled-table td {
    padding: 12px 15px;
    text-align: left;
}

.styled-table thead {
    background-color: #4CAF50;
    color: white;
}

.styled-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.styled-table tr:hover {
    background-color: #e0e0e0;
}

.btn-link {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: bold;
}

.btn-link:hover {
    text-decoration: underline;
}
