@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1c1c1c;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    background-image: url('/images/wallpaper.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

/* Center the form */
main {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar styles */
.navbar {
    background-color: #1a1a1a; /* Dark gray background */
    color: #ffffff; /* White text */
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.back-button {
    background-color: #9b59b6; /* Purple background */
    color: #ffffff; /* White text */
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
}

.logout-button {
    background-color: #9b59b6; /* Purple background */
    color: #ffffff; /* White text */
    padding: 10px;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}

/* Centered text in the navbar */
.navbar-text {
    flex-grow: 1;
    font-size: 18px;
}
/*
 *  Panel styles
 * */
.small-panel,
.large-panel {
    background-color: #1a1a1a;
    padding: 20px;
    border: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.small-panel {
    width: 400px;
    max-width: 400px;
}

.large-panel {
    width: 1200px;
    max-width: 1200px;
}

/* Basic button styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333333;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.margin-bottom {
    margin-bottom: 16px;
}

/* Button hover effect */
.button:hover {
    background-color: #333333;
    color: #ffffff;
    border-color: #333333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: Add more styles as needed, such as focus styles */
.button:focus {
    outline: none;
}

/* Style the form */
form {
    background-color: #1a1a1a;
    width: 80%;
    max-width: 400px;
    padding: 20px;
    border: 1px solid #3d3d3d;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

label {
    margin-top: 6px;
}

.coupon-fieldset {
    border: 1px solid #3d3d3d;
    margin-top: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.material-fieldset {
    border: 1px solid #3d3d3d;
    margin-top: 16px;
    padding: 16px;
}

legend {
    color: #8e44ad;
}

/* Apply styles to all input elements */
input,
select,
textarea
{
  /* Add some padding and margin for better spacing */
  padding: 10px;
  margin: 5px;

  /* Apply a border with rounded corners */
  border: 1px solid #ccc;
  border-radius: 5px;

  /* Add a subtle box shadow for depth */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

  /* Add a transition for smooth hover and focus effects */
  transition: border-color 0.3s, box-shadow 0.3s;
  
  font-size: 16px;
  color: #333;
}

input[type="text"] {
    height: 40px;
}

input[type="submit"] {
    color: #ffffff;
    margin-top: 16px;
    padding: 12px;
    background-color: #8e44ad;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #301934;
}

/* Hide the default checkbox */
input[type="checkbox"] {
    margin-bottom: 10px;
    transform: scale(1.5); 
}

input[type="file"] {
    color: white;
    width: 100%;
}

textarea {
    resize: none;
    height: 80px;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/*
 *  Form fieldset styling
 * */
.fieldset {
    border: 1px solid #3d3d3d;
    margin-top: 16px;
    padding: 16px;
}

#coupon-image-upload-fieldset {
    display: none;
}

/*
 *  Inputs
 * */

.coupon-image-upload-input {
    display: none;
}

.coupon-image-upload-label {
    display: none;
}

/*
 *  Table styles
 * */

/* General table styles */
.table-container {
  max-width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #2e2e2e; /* Dark gray background */
  color: #ffffff; /* White text */
}

/* Table caption styles */
.table-caption {
  font-size: 1.2em;
  padding: 10px;
  text-align: center;
  color: #9b59b6; /* Purple caption text */
}

/* Table header styles */
.table thead {
  background-color: #474747; /* Darker gray for the header background */
}

.table th, .table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #666666; /* Slightly lighter border color */
}

/* Alternate row background color in tbody */
.table tbody tr:nth-child(even) {
  background-color: #3a3a3a; /* Darker gray for even rows */
}

/* Hover effect on table rows */
.table tbody tr:hover {
  background-color: #555555; /* Darker gray on hover */
}

/* Call-to-action button styles */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #9b59b6; /* Purple border */
    border-radius: 4px;
    background-color: #2e2e2e; /* Dark gray background */
    color: #ffffff; /* White text */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* CTA button hover effect */
.cta-button:hover {
    background-color: #9b59b6; /* Purple background on hover */
    color: #ffffff; /* White text on hover */
    border-color: #9b59b6; /* Purple border on hover */
}
