body {
    font-family: "Kedebideri", sans-serif;
    padding-bottom: 70px;
    /* background: linear-gradient(to bottom right, darkred, #f1263a); */
}

.background {
    background: linear-gradient(to bottom right, darkred, #f1263a);
    min-height: 100vh;
}

.h1_header {
    color: white;
    padding: 2em;
}

.text_black {
    color: black;
}

.logout-form {
    margin: 0;
    float: right;
}

.logout-button {
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font: inherit;
    padding: 0;
    text-align: center;
    width: 100%;
}

.logout-button:hover {
    color: green;
}

.logout-button-emoji {
    font-size: inherit;
}

.logout-button-text {
    font-size: inherit;
}

.person_name, .person_count {
    color: green;
    font-size: 3em;
    font-weight: bold;
}

.card {
    margin: 2em;
    padding: 2em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);    
}

.card_main {
    width: 60%;
    margin-left: auto;
    margin-right:auto;
}

.grid_card {
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    grid-template-rows: auto 1fr;
    position: relative;
    overflow: hidden;
}

.card_name_who {
    grid-row: 1/2;
    grid-column: 1/3;
}

.item_name {
    font-size: 5em;
    font-weight: bold;
    color: green;

}

.item_who {
    display: inline-block;
    padding: 4px 12px;
    margin: 0.25em;
    color: green;
    border: 2px solid green;
    background-color: white;
    border-radius: 16px;
    font-size: 0.875rem;
    color: #333;
    text-decoration: none !important;
}

.item_who:hover {
    background-color: green;
    color: white;
}

.item_type{
    grid-column: 1/2;
    grid-row: 2/3;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    font-size: 2em;
}


.item_price {
    grid-row: 2/3;
    grid-column: 1/4;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size:1.5em;
    font-weight:bold;
}

.item_delete {
    grid-row: 1/2;
    grid-column: 3/4;
    display: flex;
    justify-content: right;
    align-items: center;
}

.delete-button {
    grid-row: 1/3;
    grid-column: 3/4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
}

.delete-icon {
    width: 3em;
    height: 3em;
    background-color: darkslategray;  /* Red */
    border-radius: 50%;  /* Circle */
    position: relative;
    cursor: pointer;
}
.delete-button {
    grid-row: 1/3;
    grid-column: 3/4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    /* z-index: 10; */
    position: relative;
    pointer-events: auto;
}


.delete-button {
    grid-row: 1/3;
    grid-column: 3/4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
}

.delete-icon {
    width: 3em;
    height: 3em;
    background-color: darkslategray;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.delete-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: white;
    transform: translateY(-50%);
}

.delete-icon:hover {
    background-color: darkgray;
}

.card-content {
    transition: transform 0.3s ease;
}

.grid_card.delete-active .card-content {
    transform: translateX(-20vw);
}

.delete-confirmation {
    position: absolute;
    right: -20vw;
    top: 0;
    width: 20vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    border-left: 3px solid white;
}

.grid_card.delete-active .delete-confirmation {
    right: 0;
}

.delete-confirmation p {
    display: none;
}

.btn-yes {
    flex: 1;
    width: 100%;
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.btn-yes::before {
    content: 'Delete';
}

.btn-no {
    flex: 1;
    width: 100%;
    background-color: #495057;
    color: white;
    border: none;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-no::before {
    content: 'Cancel';
}



.flex {
    display: flex;
}

.f_space_between {
    justify-content: space-between;
    align-items: space-between;
}

.f_row {
    flex-direction: row;
}
.breadcrumb a, .breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before {
    color: white !important;
}

.breadcrumb_nav {
    margin: 0 2em;
    padding: 0 2em;
}

.who {
    color:rgb(189, 25, 25);
    text-decoration: none;
}

.add-item-form {
    max-width: 500px;
    margin: 0 auto;
}

.add-item-form label {
    display: block;
    margin-bottom: 8px;
}

.add-item-form input,
.add-item-form select {
    width: 100%;
    margin-bottom: 16px;
}

.add-item-form button {
    width: 100%;
}

input[type="text"],
input[type="number"] {
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: green;
}
/* Select2 custom styling to match form */
.select2-container--default .select2-selection--multiple {
    border: 2px solid #ddd !important;
    border-radius: 4px;
    min-height: 48px !important;
}

.select2-container--default .select2-selection--single {
    border: 2px solid #ddd !important;
    border-radius: 4px;
    height: 48px !important;
    font-family: inherit;
}

.select2-search__field {
    height: 100% !important;
    padding-left: 8px !important;
    padding-top: 4px !important;
}

.select2-selection {
    height: 48px;
}

.select2-container--default .select2-search--inline .select2-search__field {
    font-size: 1em !important;
    font-family: inherit !important;
    font-weight: normal !important;
    color: inherit !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 12px !important;
    padding-top: 8px;
    font-size: 1em;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

/* Badge styling - match original item_who badges */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 4px 12px !important;
    margin: 0.25em !important;
    padding-right: 18px !important;
    color: #333 !important;
    border: 2px solid green !important;
    background-color: white !important;
    border-radius: 16px !important;
    font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #333 !important;
    display: flex;
    justify-content: flex-end;
    padding-right: 8px !important;
    padding-top: 4px !important;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    background-color: green !important;
    color: white !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover .select2-selection__choice__remove {
    color: white !important;
    background-color: rgba(255, 255, 255, 0) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: green;
    outline: none;
}

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

/* Dropdown styling */
.select2-dropdown {
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.select2-results__option {
    padding: 10px 12px;
    font-size: 1em;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: green;
    color: white;
}

.form_add_label {
    margin-top: 12px;
}

.mdc-button{
    margin-top:32px;
}

.mdc-button--raised {
    background-color: rgb(142, 17, 17) !important;
    color: white !important;
}

.mdc-button--raised:hover {
    background-color: rgb(227, 64, 64) !important;
}

/* Choices.js selected item styling */
.choices__list--multiple .choices__item {
    color: black !important;
    background-color: white !important;
    border: 2px solid green !important
}

/* Hover state */
.choices__list--multiple .choices__item:hover {
    color: white !important;
    background-color: green !important;
    border-color: green !important;
}

/* Remove button - default black */
.choices__list--multiple .choices__item .choices__button {
    border-left: 1px solid rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    filter: brightness(0) !important;
}

/* Remove button - white on hover */
.choices__list--multiple .choices__item:hover .choices__button {
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
    filter: brightness(0) invert(1) !important;
}


.calc-item {
    padding: 2em 2em;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.calc-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.calc-item-name {
    font-weight: 600;
}

.calc-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 10px;
    min-width: 20px;
}

.calc-item-price {
    font-weight: 600;
}

.calc-item-tags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.calc-emoji {
    font-size: 20px;
}

.calc-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #ccc;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.calc-total-text {
    color: #ccc;
}

.calc-total-amount {
    color: #ccc;
}


.filter-form {
    justify-content: center;
    display: flex;
    flex-direction:column;
    width: 40%;
    margin-left: auto;
    margin-right: auto;

}
.filter_dropdowns {
    margin: 2em 2em 1em 2em;
}

.btn-filter {
    margin: 1em 2em 2em 2em;
    padding: 12px 30px;
    background-color: green;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-filter:hover {
    background-color: darkgreen;
}


/* Auth pages */
.auth-card {
    border-radius: 16px;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    margin-top: 16px;
    font-weight: 600;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 8px;
}

.auth-form input:focus {
    outline: none;
    border-color: green;
}

.auth-form .mdc-button {
    width: 100%;
    margin-top: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: green;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #ffe6e6;
    border: 1px solid #ff4444;
    color: #cc0000;
    padding: 12px;
    border-radius: 4px;
    margin: 16px 0;
}

.logout-message {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.mdc-button-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.auth_background {
    min-height: 100vh;
    padding-bottom: 0;
}

.auth_background .h1_header {
    flex-shrink: 0;
}

.auth_background .card_main {
    flex-shrink: 0;
}

body:has(.auth_background) {
    padding-bottom: 0;
}



.bottom_margin {
    padding-bottom: 2em;
}

.home-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.home-bar a {
    text-decoration: none;
    text-align: center;
    color: #333;
    flex: 1;
}

.home-bar a:hover {
    color: green;
}

.home-bar-years {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.home-bar-years a {
    text-decoration: none;
    text-align: center;
    color: #333;
    flex: 1;
}

.home-bar-years a:hover {
    color: green;
}

.logout-button-years {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font: inherit;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


@media all and (max-width: 1000px){
    .card_main, .calc-item, .calc-total {
        font-size: 34px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .bottom_margin {
        padding-bottom: 18em;
    }

    .home-bar {
        padding: 4em;
    }

    .home-bar-emoji {
        font-size: 62px;
    }
    
    .home-bar-text {
        font-size: 32px;
    }

    .breadcrumb-item {
        font-size:48px;
    }

    .breadcrumb-item {
        font-size:32px;
    }

    .home-bar-years {
        padding: 25px;
    }

    .logout-form-years {
        margin: 0;
        display: flex;
        flex: 1;
    }
    
    .logout-button-years {
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        font: inherit;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .logout-button-years .logout-button-emoji {
        font-size: 22px;
    }
    
    .logout-button-years .logout-button-text {
        font-size: 13px;
    }


    .auth-card {
        margin-top: 0
    }

    .auth-form label {
        font-size: 16px;
        margin-top: 2px;
        margin-bottom: 2px;
    }
    
    .auth-form input {
        font-size: 16px;
    }
    
    .auth-form .mdc-button {
        font-size: 316x;
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .auth-link {
        font-size: 16px;
        margin-top: 40px;
    }
    
    .logout-message {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .error-message {
        font-size: 16px;
    }



    .item_who {
        padding: 0.75em 2em;
        font-size: 34px;
        border-radius:2em;
    }

    .calc-emoji {
        font-size: 34px;
        padding-top: 0.25em;
    }

    .item_price {
        font-size: 34px;
    }

    .filter-form {
        width: 90%;
        margin-left: auto;
        margin-right:auto;
        margin-bottom: 2em;
    }

    .filter-dropdowns {
        margin: 0;
        width: 100%;
        /* padding: 1em; */
    }

    .filter-form .choices {
        width: 100% !important;
    }

    .filter-group {
        width: 100%;
    }

    .btn-filter {
        padding: 50px 0;
        width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    .choices {
        font-size: 34px;
    }

    .choices__inner, .choices__list--multiple, .choices__lst--dropdown {
        font-size: 34px;
    }
    
    .add-item-form label {
        font-size: 34px;
        margin-bottom: 0.6em;
    }
    
    .add-item-form input[type="text"],
    .add-item-form input[type="number"],
    .add-item-form select {
        font-size: 34px;
        padding: 0.8em 1em;
    }
    
    .add-item-form .choices__inner {
        font-size: 34px;
        min-height: 3em;
        padding: 0.6em;
    }
    
    .add-item-form button[type="submit"] {
        font-size: 34px;
        margin-top: 1em;
        padding: 2em;
    }

    .add-item-form .choices__list--dropdown,
    .add-item-form .choices__list--dropdown .choices__item,
    .add-item-form .choices__input {
        font-size: 34px !important;  /* Changed from 1rem */
    }

    .add-item-form .choices,
    .add-item-form .choices__inner,
    .add-item-form .choices__list--multiple,
    .add-item-form .choices__item {
        font-size: 34px !important;  /* Change this to whatever you want */
    }

    .filter-form .choices,
    .filter-form .choices__inner,
    .filter-form .choices__list--multiple,
    .filter-form .choices__item {
        font-size: 34px !important;
    }

    /* Keep dropdown options normal size */
    .filter-form .choices__list--dropdown,
    .filter-form .choices__list--dropdown .choices__item,
    .filter-form .choices__input {
        font-size: 34px !important;
    }

    .filter-form label {
        font-size: 34px;
    }

    
    .select2-container--default .select2-selection--multiple {
        min-height: auto !important;
        font-size: 34px !important;
    }
    
    .select2-container--default .select2-selection--single {
        height: auto !important;
        font-size: 34px !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding: 20px !important;
        line-height: normal !important;
        font-size: 34px !important;
    }

    .select2-selection.select2-selection--multiple {
        min-height: 120px !important;
    }
    
    .select2-search__field {
        font-size: 34px !important;
        padding: 20px !important;
    }
    
    .select2-container--default .select2-search--inline .select2-search__field {
        font-size: 34px !important;
        padding: px !important;
    }
    
    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        /* display: flex !important; */
        /* justify-content: space-between; */
        /* align-items: center; */
        font-size: 34px !important;
        padding: 15px 30px !important;
        border-radius: 50px !important;
        /* padding-right: 70px!important; */
        margin: 10px !important;
    }
    
    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
        color: white !important;
        font-size: 34px !important;
        padding-left: 15px !important;
        padding-right: 30px !important;
        margin-left: 15px !important;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice:hover .select2-selection__choice__remove {
        color: green !important;
        background-color: rgba(255, 255, 255, 0) !important;
    }

    
    /* Dropdown mobile */
    .select2-results__option {
        font-size: 34px !important;
        padding: 20px !important;
    }




    /* Add item form mobile */
    .add-item-form {
        height: 100% !important;
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
}