.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(11 11 13 / 65%);
    backdrop-filter: blur(2px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--safe-top) var(--safe-right) var(--safe-bottom-ui) var(--safe-left);
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: flex;
}

.popup {
    position: relative;
    z-index: 1002;
    width: 90%;
    max-width: 450px;
    max-height: calc(100% - 32px);
    background: #151519;
    border: 1px solid #2c2c33;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    width: 100%;
    height: 32px;
}

.popup-title {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 32px;
    color: #f9f9ff;
}

.close-button {
    width: 24px;
    height: 24px;
    background: url('../img/icons/ic_close_light.svg') center no-repeat;
    border: none;
    cursor: pointer;
    padding: 0;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 0px 0 0;
    gap: 15px;
    width: 100%;
}

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

.input-group label {
    color: #9d9da7;
    font-family: 'Jost';
    font-size: 16px;
}

.input-field {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
    gap: 10px;
    width: -webkit-fill-available;
    height: 50px;
    background: #151519;
    border: 1px solid #2c2c33;
    border-radius: 10px;
    color: #efeff8;
    font-family: 'Jost';
    font-size: 18px;
}

.input-field::placeholder {
    color: #45454D;
}

.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #17171c;
    border-radius: 10px;
    padding: 10px;
}

.month-selector button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-selector button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.month-selector span {
    color: #f9f9ff;
    font-family: 'Jost';
    font-size: 18px !important;
}

.rate-slider {
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
}

.rate-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: #3A3A42;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.rate-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FAFAFA;
    border-radius: 50%;
    cursor: pointer;
}

.rate-value {
    margin-top: 10px;
    color: #f9f9ff;
    font-family: 'Jost';
    font-size: 18px;
    text-align: center;
}

.color-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #17171c;
    border-radius: 10px;
    padding: 10px;
}

.color-select button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-select button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.color-select .middle-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    position: relative;
}

.color-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgb(60 60 60 / 17%);
    color: #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.color-select span {
    color: #f9f9ff;
    font-family: 'Jost';
    font-size: 18px;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.create-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 16px;
    width: 100%;
    height: 50px;
    background: #efeff8;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #0e0e11;
    font-family: 'Jost';
    font-size: 18px;
    transition: transform 0.2s ease-in-out;
}

.create-button:hover {
    transform: scale(1.02);
}

.create-button:active {
    transform: scale(0.98);
}

.delete-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 16px;
    width: 100%;
    height: 50px;
    background: #9941401a;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #c66664;
    font-family: 'Jost';
    font-size: 18px;
    transition: background-color 0.2s ease-in-out;
}

.delete-button:hover {
    background: #99414034;
}

.delete-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ec8784' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
} 