body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #333;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
}

.logout-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c9302c;
}

.content {
    background: white;
    /* padding: 2rem; */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #337ab7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.back-btn:hover {
    background: #286090;
}

h2 {
    margin: 0;
}

.app_title {
    padding: 24px 24px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.app-content {
    /* margin-top: 24px; */
    display: flex;
    flex-direction: row;
    gap: 10%;
    flex-wrap: wrap;
}

.app-content__settings {
    display: flex;
    flex-direction: column;
    width: 45%;
    /* gap: 24px; */
}
.app-settings {
    display: flex;
    width: 45%;
    flex-direction: column;
    gap: 24px;
}

.download-section {
    margin-top: 24px;
}

.app-auth .btn {
    margin-bottom: 0;
}

.app-scope {
    display: flex;
    gap: 4px;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 24px;
}
.app-scope-elem {
    background-color: #c0c0c0;
    color: rgb(0, 0, 0);
    padding: 4px 8px;
    border-radius: 16px;
}

#changeTokensForm {
    /* padding: 8px; */
    overflow: hidden;
    height: 0px;
    background-color: #f4f4f4;
    transition: height 0.5s ease;
}
#changeTokensForm form {
    padding-top: 8px;
}
#changeTokensForm input {
    margin: 0 8px;
    width: calc(100% - 16px);
}
#changeTokensForm label {
    margin: 8px 8px;
}
#changeTokensForm .btn {
    margin: 0;
}

.app-card-content {
    /* margin-top: 24px; */
    display: flex;
    /* flex-direction: row; */
    flex-direction: column;
    gap: 10%;
    flex-wrap: wrap;
}

.btn-download {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.btn-download:hover {
    background-color: #45a049;
}

#downloadStatus {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #333;
}

.token-setup {
    padding: 24px;
    display: flex;
    gap: 10%;
}

.token-setup > div {
    width: 45%;
}

/* .................................................................. */
/* Основные стили вкладок */
.tab-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-buttons {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    position: relative;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: #333;
}

.tab-button.active {
    color: #4CAF50;
    background-color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4CAF50;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
}

.tab-content.active {
    display: block;
}
