body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 360px;
}

h2 {
    text-align: center;
    color: #333;
}

p {
    text-align: center;
    color: #666;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Prevents padding from affecting width */
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    display: block; /* Make sure it takes up space */
    margin-top: .25rem;
}

.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    width: 100%; /* Make button full width */
}

.btn-primary:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}

.alert {
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
}

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

.action-links a {
    margin-right: 10px;
    color: #007bff;
    text-decoration: none;
}

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

.action-links a.delete {
    color: #dc3545;
}

.container { /* Added for admin dashboard centering */
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Add some margin at the top */
}
nav {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}
nav a:hover {
    text-decoration: underline;
}
.page-header {
    text-align: center;
    margin-bottom: 20px;
}
.page-header h1 {
    display: inline; /* Keep h1 on the same line as links */
}
.page-header a {
    margin-left: 20px; /* Space out links */
}

/* --- Dropdown Styles --- */
/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px; /* Adjusted width */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}



.text-center {
    text-align: center;
}

/* Header Styles */
.main-header {
    display: flex;
    align-items: center;
    padding:0% 20px ;
    border:#fdfcfc 1px solid;
    justify-content: center;
    background-color: #333;
    width: 100%;
    box-sizing: border-box;
}

.header-logo {
    height: 80px; /* Adjust as needed */
    margin-right: 20px;
}

.header-text {
    text-align: center;
    color:#ddd;
}

.header-text h1, .header-text h2, .header-text h3 {
    margin: 0;
    line-height: 1.2;
    color:#ddd;
}

.header-text h1 {
    font-size: 1.2em;
    font-weight: normal;
}

.header-text h2 {
    font-size: 1.5em;
    font-weight: bold;
}

.header-text h3 {
    font-size: 1.2em;
    font-weight: normal;
}

/* Footer Styles */
.main-footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #333;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.main-footer a {
    color: #00bfff; /* Deep sky blue, or any color you prefer */
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* Adjust body to be a column flex container */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* The main container for content should not be centered by default anymore */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto; /* Re-center horizontally */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allows the container to grow and push the footer down */
}
