/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
  }
  
  body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
  }
  
  h1, h2, h3 {
    color: #444;
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
  }
  
  /* Header */
  header {
    background: #1e3a8a;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
  }
  
  /* Form Styling */
  form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 20px auto;
  }
  
  form h2 {
    margin-bottom: 15px;
    color: #1e3a8a;
  }
  
  label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
  }
  
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="email"],
  select,
  textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  button,
  input[type="submit"] {
    background: #1e3a8a;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover,
  input[type="submit"]:hover {
    background: #2c52c7;
  }
  
  /* Cards */
  .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    margin: 10px;
  }
  
  .card h3 {
    margin-top: 0;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  
  /* Sidebar */
  .sidebar {
    width: 200px; /* Reduced the width of the sidebar */
    background-color: #2c3e50;
    color: #ecf0f1;
    position: fixed;
    height: 100%;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }
  
  .sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .sidebar ul {
    list-style: none;
    padding: 0;
  }
  
  .sidebar ul li {
    margin: 15px 0;
  }
  
  .sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: #34495e;
  }
  
  /* Main content beside sidebar */
  .main-content {
    margin-left: 270px;
    padding: 20px;
  }
  
  /* Stats */
  .stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .stats .card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 200px;
  }
  
  .stats .card h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
  }
  
  .stats .card p {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
  }
  
  /* Alerts */
  .alert {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    color: #fff;
  }
  
  .success {
    background-color: #28a745;
  }
  
  .error {
    background-color: #dc3545;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background: #1e3a8a;
    color: white;
    margin-top: 40px;
  }
  
  /* Dashboard Container */
  .dashboard-container {
    position: relative;
    padding-top: 20px; /* Add padding to prevent overlap */
  }
  
  .dashboard-container img {
    max-width: 80px; /* Reduced the logo size */
    display: block;
    margin: 0 auto 20px; /* Center logo and add spacing */
  }
  
  /* Referral Section */
  .ref-section {
    margin-top: 30px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .ref-section h3 {
    margin-bottom: 15px;
    color: #1e3a8a;
  }
  
  .ref-section ul {
    list-style: none;
    padding: 0;
  }
  
  .ref-section ul li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .ref-section input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .ref-section button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .ref-section button:hover {
    background-color: #2980b9;
  }

/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Dashboard container */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    background-color: #2c3e50;
    color: #ecf0f1;
    width: 200px;
    padding: 20px;
}
.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 15px 0;
}
.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 18px;
}
.sidebar ul li a.active {
    font-weight: bold;
}

/* Main content styles */
.main-content {
    flex: 1;
    padding: 20px;
}
header {
    margin-bottom: 20px;
}
header h1 {
    margin: 0;
    font-size: 24px;
}
header p {
    color: #7f8c8d;
}

/* Stats cards */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
.card p {
    font-size: 20px;
    font-weight: bold;
}

/* Referral section */
.ref-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.ref-section h3 {
    margin-top: 0;
}
.ref-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.ref-section ul li {
    margin: 5px 0;
}
.ref-section input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.ref-section button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.ref-section button:hover {
    background-color: #2980b9;
}

.dashboard-content {
    margin-left: 200px; /* Adjusted margin to match the new sidebar width */
}

input, select, textarea, button {
    height: calc(100% + 25px); /* Increased the length by 25px */
}

@media (max-width: 768px) {
    body {
        font-size: 18px; /* Increased base font size for better readability on mobile */
    }
    h1, h2, h3 {
        font-size: 25px; /* Increased heading sizes */
    }
    p, label, input, button {
        font-size: 18px; /* Increased text size for general elements */
    }
}