/* Settings Container */
.settings-container {
    position: relative;
    width: 100%;
    max-width: 576px;
    margin: 0 auto;
    background-color: var(--bg-color);
    color: white;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    padding-bottom: 89px;
}

/* Settings Header */
.settings-header {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-color);
    border-radius: 0 0 20px 20px;
    padding: 15px 0;
}

.back-arrow {
    position: absolute;
    left: 15px;
    width: 24px;
    height: 24px;
    background-image: url('../images/right-arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-180deg);
    cursor: pointer;
}

.settings-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.196px;
    color: var(--text-color);
    margin: 0;
}

/* Account Section */
.account-section {
    position: relative;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 20px;
}

.account-image {
    width: 152px;
    height: 152px;
    margin: 0 auto;
    background-image: url('../images/avatar.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.account-name {
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    text-align: center;
    letter-spacing: -0.196px;
    color: var(--text-color);
    margin: 15px 0;
}

.steam-id-section {
    width: calc(100% - 64px);
    margin: 0 auto;
    background: #0A0A0A;
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.steam-id-label {
    font-weight: 600;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: -0.196px;
    color: var(--secondary-text);
    margin-bottom: 5px;
}

.steam-id-input {
    width: 100%;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.196px;
    color: var(--text-color);
    background: transparent;
    border: none;
    outline: none;
    padding: 5px 0;
    border-bottom: 1px solid var(--secondary-text);
}

.steam-id-input:focus {
    border-bottom-color: var(--accent-color);
}

.steam-id-input:invalid:not(:placeholder-shown) {
    border-bottom-color: var(--discount-color);
}

.steam-id-error {
    color: var(--discount-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.steam-id-input:invalid:not(:placeholder-shown) + .steam-id-error {
    display: block;
}

/* Notifications Tabs */
.notifications-tabs {
    display: flex;
    width: calc(100% - 64px);
    margin: 0 auto 20px;
    background: var(--card-color);
    border-radius: 10px;
    overflow: hidden;
}

.notification-tab {
    flex: 1;
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    background: transparent;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-tab.active {
    background: var(--accent-color);
}

.notification-tab:not(.active) {
    color: var(--secondary-text);
}

/* Tab Content */
.tab-content {
    display: none;
    width: calc(100% - 64px);
    margin: 0 auto;
    background: var(--card-color);
    border-radius: 10px;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

/* Updates Section */
.update-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.update-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(145, 145, 145, 0.3);
}

.update-name {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.196px;
    color: var(--text-color);
}

/* Custom checkbox */
.update-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-left: 15px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.update-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.update-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    transition: all 0.2s;
}

.update-checkbox-container:hover .checkmark {
    background-color: rgba(0, 201, 255, 0.1);
}

.update-checkbox-container:hover input ~ .checkmark {
    background-color: rgba(0, 201, 255, 0.1);
}

.update-checkbox:checked ~ .checkmark {
    background-color: var(--accent-color);
}

.update-checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px; /* Тонкая настройка положения галочки */
}

.update-checkbox:checked ~ .checkmark:after {
    display: block;
}

.update-checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.update-checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* About Section */
.about-section {
    font-size: 14px;
    line-height: 1.5;
    color: var(--secondary-text);
    text-align: center;
    padding: 20px 0;
}

.about-section p {
    margin-bottom: 10px;
}

/* About Section */
.about-section2 {
    font-size: 14px;
    line-height: 1.5;
    color: var(--secondary-text);
    text-align: center;
    padding: 20px 0;
}

.about-section2 p {
    margin-bottom: 10px;
}

.save-steamid-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-steamid-btn:hover {
    background-color: #0099FF;
}

/* Add Item Tab */
#add-item-tab {
    display: none;
}

#add-item-tab.active {
    display: block;
}

.add-item-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.add-item-form input,
.add-item-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--card-color);
    border: 1px solid rgba(145, 145, 145, 0.3);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
}

.add-item-form input:focus,
.add-item-form textarea:focus {
    border-color: var(--accent-color);
}

.add-item-form textarea {
    min-height: 100px;
    resize: vertical;
}

.add-item-button {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-item-button:hover {
    background-color: #0099FF;
}

/* Placeholder styling */
.add-item-form input::placeholder,
.add-item-form textarea::placeholder {
    color: var(--secondary-text);
    opacity: 0.7;
}