:root{
    --table-header-bg-color: #f5f5f5;
    --wrapper-div-bg-color: #f5f5f5;
    --styled-form-bg-color: #f5f5f5;
    --styled-form-font-color: black;
    --styled-form-input-color: #f5f5f5;
    --home-page-bg: #f5f5f5;
}

.dark-mode {
    --table-header-bg-color: rgb(40, 40, 40);
    --wrapper-div-bg-color: rgb(40, 40, 40);
    --styled-form-bg-color: rgb(40, 40, 40);
    --styled-form-font-color: white;
    --styled-form-input-color: rgb(73, 73, 73);
    --home-page-bg: #1e1e1e;

}


/* base layout */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}



.layout-container {
    display: flex;
    width: 100%;
    height: 100vh;
    transition: all 0.3s ease;
    overflow-x: hidden;
    background-color: var(--home-page-bg);
}



.top-bar {
    width: 100%;
    background-color: #333;
    overflow: visible;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    padding-bottom: 6px;
    padding-top: 6px;
    height: 56px;
}

/* dropdown menus */
.dropdown {
    position: relative;
}

.home-btn {
    background-color: #333;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.home-btn svg {
    fill: white;
    width: 24px;
    height: 24px;
}

.home-btn:hover,
.home-btn:focus {
    background-color: #555;
}

.dropbtn,
.home-btn {
    background-color: #333;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dropbtn:hover,
.dropbtn:focus,
.home-btn:hover,
.home-btn:focus {
    background-color: #555;
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    top: 100%;
    z-index: 2000;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.right-menu {
    margin-right: 25px;
}

.right-menu .dropdown-content {
    right: 0;
}

.left-menu .dropdown-wrapper {
    display: flex;
    align-items: center;
}

.center-topbar-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    font-size: x-large;
    color: white; 
}

.center-topbar-text p {
    margin: 0;
    white-space: nowrap;
}

.main-area {
    flex: 1;
    transition: margin-right 0.3s ease;
    margin-right: 0px;
    min-height:100vh;
}


/* used by all pages */
.wrapperdiv {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.main-content {
    width: 100%;
    max-width: 1550px;
}

.main-container {
    display: flex;
    width: 100%;
    gap: 20px;
}

.outer-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    height: 750px;
}

.inner-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container-no-overflow {
    overflow: unset;
}

.title {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: x-large;
}

.smalltitle {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: large;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.center-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #333;
}

.center-wrapper .title {
    font-size: 2.0em;
    font-weight: bold;
    margin-bottom: 20px;
}

.center-wrapper .subtitle {
    font-size: 1.5em;
    margin-bottom: 20px;    
    font-style: italic;
}

.center-wrapper .navheader {
    font-size: 1.25em;
    margin-bottom: 20px;
    margin-top: 45px;
}

.center-wrapper .button-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.login-page-button-area {
    height: 50%;
}

/* used by all ListView pages */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: var(--table-header-bg-color);
}

.button-td {
    width: 0%;
}

.dynamic-td {
    white-space: nowrap;
    width: auto;
}

.action-button {
    padding: 5px 10px;
    margin: 5px 0px;
    border: 1px solid #4caf50;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.action-button:hover {
    background-color: white;
    color: #4caf50;
}

.action-button.edit {
    background-color: #2196f3;
    border: 1px solid #2196f3;
}

.action-button.edit:hover {
    background-color: white;
    color: #2196f3;
}

.action-button.edit:active {
    background-color: white;
    color: #2196f3;
}

.action-button.delete {
    background-color: #f44336;
    border: 1px solid #f44336;
}

.action-button.delete:hover {
    background-color: white;
    color: #f44336;
}

.action-button.delete:active {
    background-color: white;
    border: 1px solid #f44336;
}

.action-button.add {
    background-color: #4caf50;
    border: 1px solid #4caf50;
    margin-bottom: 10px;
}

.action-button.add:hover {
    background-color: white;
    color: #4caf50;
}

.action-button.add:active {
    background-color: white;
    border: 1px solid #4caf50;
}

.action-button.back {
    background-color: #757575;
    border: 1px solid #757575;
    margin-bottom: 10px;
}

.action-button.back:hover {
    background-color: white;
    color: #757575;
}

.action-button.back:active {
    background-color: white;
    border: 1px solid #757575;
}

.action-button.save {
    align-self: flex-start;
    padding: 10px 15px;
    border: 2px solid #4caf50;
    border-radius: 5px;
    color: #fff;
    background-color: #4caf50;
    transition: background-color 0.3s, color 0.3s;
}

.action-button.save:hover {
    background-color: white;
    color: #4caf50;
}

.action-button {
    transition: all 0.3s;
}

.action-button:disabled,
.action-button.disabled {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.6;
    border: 1px solid grey;
}

.action-button:disabled:hover,
.action-button.disabled:hover {
    background-color: grey;
    color: white;
}

.action-button.disabled:active {
    background-color: grey;
    color: white;
}

.nav-button {
    padding: 15px 30px;
    font-size: 1.2em;
    border: 2px solid #4caf50;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.nav-button:hover {
    background-color: white;
    color: #4caf50;
}

.nav-button:active {
    background-color: #45a049;
    border: 2px solid #45a049;
}

/* form styling */
.styled-form,
.styled-div {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: var(--styled-form-bg-color);
}

.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="number"],
.styled-form input[type="url"],
.styled-form select,
.styled-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
    margin-top: 7px;
    background-color: var(--styled-form-input-color);
    color: var(--styled-form-font-color);
}

.styled-form input[type="date"] {
    width: 100%;
    padding: 9px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
    margin-top: 7px;
    background-color: var(--styled-form-input-color);
    color: var(--styled-form-font-color);
}

.styled-form input[type="time"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
    margin-top: 7px;
    background-color: var(--styled-form-input-color);
    color: var(--styled-form-font-color);
}

input[type="color"] {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 30px;
    margin-top: 7px;
    
}

.styled-form select {
    width: 5%;
}

.styled-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .styled-form {
        gap: 10px;
    }

    .styled-form input[type="text"],
    .styled-form input[type="email"],
    .styled-form select,
    .styled-form textarea {
        font-size: 14px;
    }
}

/* any page with notifications */
.notification {
    display: none;
    position: fixed;
    top: 90px; /* Ensures the notification box appears 20px from the top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    opacity: 0; /* Start with opacity 0 */
    transition: opacity 0.2s ease-in-out;
}

.notification.success {
    background-color: #4caf50;
    color: white;
}

.notification.error {
    background-color: #f44336;
    color: white;
}

.django-message {
    display: none;
}

.do-not-display {
    display: none;
}

.center-td {
    text-align: center;
}
  
.checkmark {
    color: green;
    font-size: 20px;
}

.red-x {
    color: red;
    font-size: 20px;
}

.code-block {
    background-color: #d0d0d0;
    padding: 5px;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
    font-family: monospace;
}

.required-field::after {
    content: "*";
    color: red;
}
/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
  
.step-links {
    display: flex;
    gap: 10px;
}
  
.step-links a,
.step-links .current,
.step-links .disabled {
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    outline: none;
    transition: background-color 0.3s, color 0.3s;
    font-size: small;
    align-content: center;
}
  
.step-links a {
    background-color: #4caf50;
    border: 1px solid #4caf50;
}
  
.step-links a:hover,
.step-links a:focus {
    background-color: white;
    color: #4caf50;
}
  
.step-links .current {
    color: black;
    font-size: medium;
}
  
.step-links .disabled {
    background-color: grey;
    color: white;
    opacity: 0.6;
    border: 1px solid grey;
    cursor: not-allowed;
    pointer-events: none;
}

/*=========================
  Sidebar Styles
=========================*/
.sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--sidebar-border);
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -10px 0 30px var(--sidebar-shadow);
}
 
.sidebar.open {
  right: 0;
}

.sidebar.open ~ .main-area {
    margin-right: 350px;
}

 
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--header-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
}
 
.close-sidebar {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--close-color);
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s;
}
 
.close-sidebar:hover {
  background: var(--close-hover-bg);
  color: var(--close-hover-color);
}
 
.sidebar-nav {
  padding: 20px 0;
}
 
.nav-section {
  margin-bottom: 30px;
}
 
.nav-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--close-color);
  margin-bottom: 10px;
  padding: 0 20px;
  letter-spacing: 0.5px;
}
 
.nav-item {
  display: block;
  padding: 12px 20px;
  color: var(--nav-text);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
 
.nav-item:hover {
  background: var(--nav-hover-bg);
  border-left-color: var(--nav-hover-border);
  color: var(--nav-hover-color);
}

.theme-icon {
  width: 16px;
  height: 16px;
  stroke: var(--icon-color);    
  vertical-align: middle;      
  margin-right: 8px;             
}
 
/*=========================
  Sidebar Toggle Button
=========================*/
.sidebar-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  background: var(--toggle-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--toggle-border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
  box-shadow: 0 4px 15px var(--toggle-shadow);
}
 
.sidebar-toggle:hover {
  background: var(--toggle-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--toggle-shadow-hover);
}
 
.sidebar-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--toggle-icon-fill);
}
 
 