@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Onest:wght@100..900&display=swap');

/* ------------------------- */
/* Global Styles             */
/* ------------------------- */
html {
    font-family: var(--font-family-main);
    font-feature-settings: normal;
    font-variation-settings: normal;
    box-sizing: border-box;
    display: block;
}

body {
    font-family: var(--font-family-main);
    font-size: 16px;
    background-color: var(--primary);
    color: var(--white);
    margin: 0;
}

body::-webkit-scrollbar {
    width: 2px;
}

main {
    padding: 0px 100px 30px 100px;
}

a {
    color: var(--white);
    text-decoration: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: var(--font-family-main);
}

h1 {
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

p {
    margin: 0;
}

/* ------------------------- */
/* Layout & Structure        */
/* ------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0 30px;
    margin: 30px 100px 0px 100px;
    text-align: center;
    border-radius: 100px;
    height: 60px;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.content {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.navigation-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 40px 0px;
    padding: 0 30px;
}

.banner {
    text-align: center;
}

/* ------------------------- */
/* Header & Navigation       */
/* ------------------------- */
.head-logo {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

a.logo {
    font-family: var(--font-family-display);
    font-size: 18px;
    font-weight: 500;
}

.beta {
    background-color: red;
    padding: 0 2px;
    font-size: 10px;
    border-radius: 2px;
}

.head-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.ellipse {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    background-color: var(--gloomy);
    width: 40px;
    height: 40px;
}



.proj-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 26px 0;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Breadcrumbs */
svg.arrow-left {
    transform: rotate(90deg);
    color: var(--white);
}

a.breadcrumbs {
    width: fit-content;
}

a.breadcrumbs:hover svg.arrow-left {
    transform: translateX(-2px) rotate(90deg);
}

h1.breadcrumbs {
    position: absolute;
    right: 40px;
    top: -10px;
}

/* ------------------------- */
/* Buttons & Links           */
/* ------------------------- */
a.nav-btn {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    background-color: var(--gloomy);
    border-radius: 100px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, filter 0.3s ease;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.nav-btn.sm {
    padding: 0 10px;
}

a.b-btn {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 40px;
    white-space: nowrap;
    background-color: var(--style);
    color: var(--dark);
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, filter 0.3s ease;
    width: fit-content;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.b-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    filter: brightness(1.05);
}

a.btn {
    background-color: var(--dark);
    padding: 10px 26px;
    border-radius: 100px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, filter 0.3s ease;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    filter: brightness(1.2);
}

.btn.circl {
    display: flex;
    align-items: center;
    color: var(--dark);
    width: 20px;
    padding: 10px;
    transition: filter 0.3s ease;
}

.btn.circl:hover {
    filter: brightness(1.05);
}

button.submit {
    background-color: var(--style);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 100px;
    width: 265px;
    text-wrap-mode: nowrap;
    transition: filter 0.3s ease;
}

button.submit:hover {
    filter: brightness(1.1);
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none; /* Hidden by default, shown by JS */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 10px; /* Rounding on the container */
    z-index: 10;
    overflow: hidden; /* Fix for child border-radius issues */
}

.dropdown-content.dark {
    background-color: var(--gloomy);
    box-shadow: none;
}

/* This class is added by JavaScript to show the dropdown */
.dropdown-content.show {
    display: block;
}

.dropdown-content a,
.dropdown-content button.status {
    color: var(--dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 13px;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.dropdown-content.dark a {
    color: var(--white);
}

.dropdown-content a:hover,
.dropdown-content button.status:hover {
    background-color: var(--light);
    color: var(--dark);
}

.dropdown-content.dark a:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* ------------------------- */
/* Cards (Project, Profile)  */
/* ------------------------- */
.cards-block {
    display: flex;
    position: relative;
    flex-direction: row;
    gap: 20px;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--shady);
    width: 235px;
    height: 625px;
    border-radius: 35px;
    padding: 30px;
}

.card-settings {
    position: relative;
    background-color: var(--white);
    height: 680px;
    width: 100%;
    border-radius: 35px;
}

.card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

img.profile {
    width: 200px;
    height: 200px;
    border: var(--style) 3px solid;
    border-radius: 50%;
}

img.mini-profile {
    width: 40px;
    height: 40px;
    border: var(--style) 2px solid;
    border-radius: 50%;
}

/* ------------------------- */
/* Forms & Inputs            */
/* ------------------------- */
.forms.overlay {
    display: none; 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 37, 42, 0.7);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.forms.overlay.active {
    opacity: 1;
}

.hidden-form {
    display: none;
}

.popup {
    position: fixed;
    width: 590px;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100vh - 60px);
    background: var(--white);
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 3;
}

.popup.wide {
    width: 800px;
}

.popup.big {
    min-height: 670px;
}

.popup.small {
    width: 400px;
    /* padding: 40px; */
}

.popup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.popup.active {
    opacity: 1;
}

.hidden-form {
    display: none;
}

.form-title {
    width: 100%;
    text-align: center;
    position: relative;
    padding: 0 40px; /* Add padding to avoid overlap */
    box-sizing: border-box;
}

.form-title h3 {
    font-size: 30px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: inline-block;
}

a.close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 33px;
    color: var(--dark);
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 20px;
    text-align: center;
    font-weight: 200;
    transition: filter 0.3s ease, transform 0.3s ease;
}

a.close:hover {
    filter: brightness(0.95);
    transform: scale(1.05);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-field > label {
    color: var(--dark);
    width: 120px;
    flex-shrink: 0;
    /* text-align: right; */
    padding-right: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
}

.form-line {
    padding: 15px 20px;
    background-color: var(--light);
    border-radius: 10px;
    color: var(--dark);
}

.form-field, .form-row-fields {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.form-row-fields > input, 
.form-row-fields > select {
    flex-grow: 1;
}

.form-row-fields select {
    max-width: 220px;
}

input, select, textarea {
    align-items: center;
    padding: 15px 20px;
    background: var(--light);
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family-main);
    color: var(--dark);
    outline: none;
}

input::placeholder, select::placeholder {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family-main);
    color: var(--dark);
}

select {
    appearance: none;
    min-height: fit-content;
}

textarea {
    max-height: 90px;
    resize: none;
    background-color: var(--white);
    border: 1px solid var(--light);
}

input[type="date"], [type="number"] {
    appearance: none;
}

.two-column-form {
    display: flex;
    gap: 20px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Forms & Inputs            */
/* ------------------------- */
.table-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Advanced Filter Styles */
.search-box-new {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--gloomy);
    border-radius: 100px;
    padding: 5px 20px;
    min-width: 300px;
}

.search-box-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.filter-pills-container {
    display: flex;
}

.filter-pill {
    display: flex;
    align-items: center;
    background-color: var(--secondary);
    width: fit-content;
    border-radius: 100px;
    padding: 2px 8px;
    margin-right: 5px;
    gap: 5px;
}

.filter-date-range {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    color: var(--gloomy);
    align-items: flex-start;
    width: 440px;
    border-radius: 100px;
    padding: 8px;
    gap: 10px;
}

.pill-label {
    color: var(--lead);
    font-size: 14px;
}

.pill-value {
    color: var(--white);
    font-size: 14px;
}

.pill-close {
    color: var(--lead);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

.pill-close:hover {
    color: var(--white);
}

.search-actions {
    position: relative;
    margin-left: auto;
}

.add-filter-btn {
    width: 24px;
    height: 24px;
    background-image: url('/static/img/icons/search-normal.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    margin-top: 5px;
}

.filter-dropdown.show {
    display: block;
}

.filter-item {
    padding: 10px 15px;
    color: var(--dark);
    cursor: pointer;
}

.filter-item:hover {
    background-color: var(--light);
}

.table-filters {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

form.filters {
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 450px;
}

.filters.active {
    display: flex;
}

button.filter, select.filter {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    font-size: 16px;
    color: var(--white);
    background-color: var(--gloomy);
    border-radius: 100px;
}

button.filter {
    transition: transform 0.5s ease;
}

button.filter:hover img.arrow {
    transform: translateY(2px);
}

button.filter.active img.arrow {
    transform: rotate(180deg);
}

.search-box {
    color: var(--white);
    background-color: var(--gloomy);
    padding: 5px 20px;
    padding-right: 20px;
    background-image: url("/static/img/icons/search-normal.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

input#searchInput::placeholder {
    color: var(--white);
}

select.filter {
    min-width: 110px;
    appearance: none;
    padding-right: 20px;
    background-image: url("/static/img/icons/arrow.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transform: 0.3s ease;
}

select.filter:hover {
    background-position-y: 12px;
}

input[type="date"].filter, input[type="date"].form-control {
    background-color: var(--gloomy);
    color: var(--white);
    padding: 5px 20px;
    padding-right: 20px;
    border-radius: 100px;
}

input[type="date"].form-control.light {
    background-color: var(--light);
    color: var(--dark);
}

.table-content {
    position: relative;
    display: flex;
    background-color: var(--white);
    border-radius: 30px;
    gap: 20px;
    flex-direction: column;
    padding: 30px 0;
    align-items: center;
}

.table-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Increased height for a softer fade */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 80%);
    pointer-events: none;
    border-radius: 0 0 30px 30px; /* Match parent container rounding */
}

.table {
    position: relative;
    width: -webkit-fill-available;
    width: -moz-available;
    height: 620px;
    border-radius: 35px;
    padding: 0 30px 30px 30px;
    background-color: var(--white);
    color: var(--dark);
    overflow: overlay;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    max-height: 600px;
}

thead {
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 1;
}

th {
    font-size: 20px;
    text-align: start;
    background-color: var(--light);
}

thead th:first-child {
    padding-left: 20px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

thead th:last-child {
    padding-right: 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

td {
    padding: 15px 0 10px 0;
    border-bottom: 1px solid var(--light);
}

td:first-child {
    padding-left: 20px;
    font-weight: 600;
}

td:last-child {
    text-align: center;
}

tbody tr:hover {
    background-color: var(--sunny);
    transition: background-color 0.3s ease;
}

div.total {
    position: absolute;
    z-index: 1;
    color: var(--dark);
    font-weight: 600;
    background-color: var(--light);
    border-radius: 100px;
    bottom: 20px;
    padding: 10px 20px;
    width: fit-content;
    border: solid 2px var(--white);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

div.total:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

/* ------------------------- */
/* Component Specific        */
/* ------------------------- */

/* Tabs */
.tabs {
    padding: 30px;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    height: 92%;
}
  
.tab-buttons {
    border-bottom: 4px solid var(--light);
    margin-bottom: 30px;
}
  
.tab-button {
    border: none;
    text-wrap: nowrap;
    font-size: 20px;
    font-weight: 500;
    background-color: transparent;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 4px solid transparent;
}

.tab-button.active {
    position: relative;
}

.tab-button.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--style);
    border-radius: 30px;
    transition: left 0.3s ease, width 0.3s ease;
}

.tab-content {
    height: 100%;
    overflow: hidden;
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow: overlay;
}

.tab-panel.active {
    display: flex;
}

/* ------------------------- */
/* Utility Classes           */
/* ------------------------- */
#message-container {
    position: fixed;
    top: 100px;
    right: 100px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    font-size: small;
}

.alert {
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease-in-out;
    min-width: 150px;
    /* max-width: 500px; */
}

.alert.alert-enter {
    transform: translateX(100%);
    opacity: 0;
}

.alert.alert-exit {
    transform: translateY(-50%) scale(0.8);
    opacity: 0;
}

.alert-success {
    background-color: var(--lime);
    color: green;
}

.alert-info {
    background-color: var(--celestial);
    color: blue;
}

.alert-warning {
    background-color: var(--banana);
    color: orange;
}

.alert-error {
    background-color: var(--radish);
    color: red;
}

.opt-light, .opt {
    color: var(--dark);
    border-radius: 50%;
    background-color: var(--light);
    width: 30px;
    height: 30px;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.opt {
    background-color: var(--gloomy);
    color: var(--white);
}

.opt-light:hover, .opt:hover {
    background-color: var(--style);
}

span.accent {
    color: var(--style);
}

span.tag {
    font-size: 16px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 100px;
    background-color: var(--light);
    color: var(--dark);
}

span.normal {
    font-size: 16px;
    font-weight: 500;
}

span.date {
    color: var(--lead);
    font-size: 12px;
    font-weight: 100;
}

span.name {
    font-size: 16px;
}

span.text {
    font-size: 16px;
    font-weight: 400;
}

span.extra {
    color: var(--lead);
    font-size: 14px;
    font-weight: 400;
}

span.title {
    width: 120px;
    padding-right: 10px;
    color: var(--dark);
}

span.delete {
    color: var(--crimson);
}

.project-actions {
    display: flex;
    gap: 15px;
}

.project-actions a,
.project-actions button {
    text-decoration: none;
    padding: 0;
    background-color: transparent;
    color: var(--dark);
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.project-actions a::after,
.project-actions button::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--dark);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.project-actions a:hover::after,
.project-actions button:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.leave-button {
    background-color: transparent;
    color: var(--crimson);
    border: none;
    text-decoration: none;
    position: relative;
    font-weight: bold;
}

.leave-button::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--crimson);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.leave-button:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

span.status {
    font-size: 16px;
    font-weight: 500;
    text-wrap: nowrap;
    height: fit-content;
    padding: 4px 8px;
    border-radius: 100px;
    color: var(--dark);
}

a.b-btn.abs {
    position: absolute;
    right: 30px;
    bottom: 30px;
}

span.plus.sm {
    font-size: 48px;
    font-weight: 100;
    height: 58px;
    transition: transform 0.3s ease;
}

.b-btn:hover span.plus.sm {
    transform: scale(1);
}

form.settings-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    width: 150px;
    font-weight: 500;
    color: var(--dark);
    margin-right: 15px;
}

.form-row input,
.form-row textarea,
.form-row select {
    flex-grow: 1;
}

.pending-email-notice {
    font-size: 12px;
    color: var(--lead);
    margin-left: 10px;
}

.tabs-dropdown {
    display: none;
}

.tab-switcher {
    width: 100%;
}

/* ------------------------- */
/* Media Queries             */
/* ------------------------- */

.table-nav-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
}

/* New Search Box Styles */
.search-wrapper {
    flex-grow: 1;
}

.search-form {
    position: relative;
}

.search-box-new {
    display: flex;
    align-items: center;
    background-color: var(--gloomy);
    border-radius: 100px; /* Match .b-btn */
    padding: 0px 8px 0px 20px;
    width: 460px;
    box-sizing: border-box;
    height: 40px; /* Match .b-btn */
    gap: 10px;
}

#search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 16px;
    padding: 5px;
}

#search-input::placeholder {
    color: var(--lead);
}

.search-actions {
    position: relative;
}

.add-filter-btn {
    background-color: transparent;
    background-image: url("/static/img/icons/search-normal.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    border: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 100px;
}

.add-filter-btn:hover {
    background-color: var(--shady);
}

.add-filter-btn.clear-filter-btn:hover {
    background-color: rgba(255, 77, 77, 0.15); /* Translucent red */
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    min-width: 200px;
    overflow: hidden;
    max-height: 300px; /* Limit height */
    overflow-y: auto;  /* Add scrollbar if needed */
    display: none;
    flex-direction: column;
}

.filter-dropdown.show {
    display: flex;
}

.filter-dropdown::-webkit-scrollbar {
    display: none;
}

.filter-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 600;
    position: sticky;
    top: 0;
    background-color: var(--white);
}

.filter-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0 5px 0 0;
    color: var(--dark);
    transition: transform 0.2s ease;
}

.filter-back-btn:hover {
    transform: translateX(-2px);
}

.filter-item {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--dark);
}

.filter-item:hover {
    background-color: var(--light);
}

@media (max-width: 870px) {
    main {
        padding: 0px 50px 30px 50px;
    }   
    header {
        margin: 30px 50px 0px 50px;
    }
}

@media (max-width: 600px) {
    main {
        padding: 0px 20px 30px 20px;
    }
    header {
        margin: 30px 20px 0px 20px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}

form.settings-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-row label {
    width: 150px;
    font-weight: 500;
    color: var(--dark);
    margin-right: 15px;
}

.form-row input,
.form-row textarea,
.form-row select {
    flex-grow: 1;
}

.pending-email-notice {
    font-size: 12px;
    color: var(--lead);
    margin-left: 10px;
}

/* For mobile devices */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    header {
        margin: 30px 40px 0px 40px;
    }
    main {
        padding: 0px 40px 30px 40px;
    }
}

@media (max-width: 768px) {
    header {
        margin: 20px;
        padding: 0 20px;
        border-radius: 25px;
    }
    main {
        padding: 0px 20px 20px 20px;
    }
    .content {
        flex-direction: column;
    }
    .content > * { /* Make direct children of .content take full width */
        width: 100% !important;
        box-sizing: border-box;
    }
    .popup {
        width: 90%;
        padding: 20px;
    }
    .form-row-fields select {
        max-width: 130px;
    }
    .table-content {
        overflow-x: auto;
    }
    .tab-button {
        font-size: 14px;
    }
        
    .cards-block {
        flex-direction: column !important; /* Stack cards vertically */
    }

    .filter-date-range{
        flex-direction: column;
    }

    .card-settings {
        order: 1; /* Settings tabs appear first */
        height: auto !important; /* Let it grow with content */
        min-height: 550px; /* Ensure enough space for the form and button */
    }

    .info-card {
        order: 2;
        height: auto !important;
        padding: 20px;
        width: auto !important;
    }

    .info-card .card-info {
        display: none; /* Hide avatar and name */
    }

    .info-card .card-footer {
        flex-direction: row; /* Arrange buttons horizontally */
        justify-content: space-around; /* Space them out */
        width: 100%;
    }

    .tab-buttons {
        display: none;
    }

    .tabs-dropdown {
        display: block;
        margin-bottom: 20px;
    }

    .settings-form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-form .form-row label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .settings-form .form-row input,
    .settings-form .form-row select {
        width: 100%;
        box-sizing: border-box;
    }
}
