/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #faf9f8;
    color: #323130;
}

ul {
    margin: 0;
    padding: 0;
}

.ms-welcome__header {
    padding: 20px;
    padding-bottom: 30px;
    padding-top: 100px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    align-items: center;
}

.ms-welcome__main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex: 1 0 0;
    flex: 1 0 0;
    padding: 10px 20px;
}

.ms-welcome__main>h2 {
    width: 100%;
    text-align: center;
}

.ms-welcome__features {
    list-style-type: none;
    margin-top: 20px;
}

.ms-welcome__features.ms-List .ms-ListItem {
    padding-bottom: 20px;
    display: -webkit-flex;
    display: flex;
}

.ms-welcome__features.ms-List .ms-ListItem>.ms-Icon {
    margin-right: 10px;
}

.ms-welcome__action.ms-Button--hero {
    margin-top: 30px;
}

.ms-Button.ms-Button--hero .ms-Button-label {
    color: #0078d7;
}

.ms-Button.ms-Button--hero:hover .ms-Button-label,
.ms-Button.ms-Button--hero:focus .ms-Button-label {
    color: #005a9e;
    cursor: pointer;
}

b {
    font-weight: bold;
}

.wrapper {
    text-align: center;
    margin: 10px 0;
    padding: 0 10px;
}

@media (min-width: 350px) {
    .wrapper {
        margin: 12px 0;
    }
}

@media (min-width: 450px) {
    .wrapper {
        margin: 15px 0;
        padding: 0;
    }
}

.button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    width: calc(100% - 20px);
    max-width: 200px;
}

@media (min-width: 320px) {
    .button {
        padding: 11px 20px;
        font-size: 13px;
        min-width: 110px;
        width: auto;
    }
}

@media (min-width: 400px) {
    .button {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 120px;
    }
}

.button:hover {
    background-color: #106ebe;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:disabled {
    background-color: #a19f9d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.button.stop-review {
    background-color: #d13438;
}

.button.stop-review:hover {
    background-color: #b02e32;
}

.button.stop-review:active {
    background-color: #a02a2e;
}

.acceptChangesButton {
    background-color: #107c10;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acceptChangesButton:hover {
    background-color: #0e6e0e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.h1 {
    color: #323130;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    padding: 0 10px;
    line-height: 1.3;
}

.h2 {
    color: #323130;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    padding: 0 10px;
    line-height: 1.4;
}

.h3 {
    color: #323130;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0 8px 0;
    padding: 0 10px;
    line-height: 1.4;
}

@media (min-width: 400px) {
    .h1 {
        font-size: 22px;
        margin: 18px 0 12px 0;
        padding: 0 15px;
    }

    .h2 {
        font-size: 17px;
        margin: 22px 0 12px 0;
        padding: 0 15px;
    }

    .h3 {
        font-size: 15px;
        margin: 14px 0 10px 0;
        padding: 0 15px;
    }
}

@media (min-width: 500px) {
    .h1 {
        font-size: 24px;
        margin: 20px 0 15px 0;
        padding: 0 20px;
    }

    .h2 {
        font-size: 18px;
        margin: 25px 0 15px 0;
        padding: 0 20px;
    }

    .h3 {
        font-size: 16px;
        margin: 15px 0 10px 0;
        padding: 0 20px;
    }
}

.orderedList {
    color: #605e5c;
    font-size: 12px;
    line-height: 1.4;
    margin: 15px 10px;
    padding: 10px 10px 10px 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.orderedList li {
    margin: 6px 0;
}

@media (min-width: 350px) {
    .orderedList {
        font-size: 13px;
        margin: 18px 12px;
        padding: 12px 12px 12px 28px;
    }

    .orderedList li {
        margin: 7px 0;
    }
}

@media (min-width: 450px) {
    .orderedList {
        font-size: 14px;
        line-height: 1.5;
        margin: 20px 20px;
        padding: 15px 15px 15px 35px;
    }

    .orderedList li {
        margin: 8px 0;
    }
}

.responseText {
    color: #107c10;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    margin: 8px 10px;
    background-color: #f3f9f1;
    border-radius: 6px;
    border-left: 4px solid #107c10;
    font-size: 13px;
    line-height: 1.4;
}

.errorText {
    color: #d13438;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    margin: 8px 10px;
    background-color: #fdf3f4;
    border-radius: 6px;
    border-left: 4px solid #d13438;
    font-size: 13px;
    line-height: 1.4;
}

@media (min-width: 350px) {

    .responseText,
    .errorText {
        padding: 11px;
        margin: 9px 15px;
        font-size: 14px;
    }
}

@media (min-width: 450px) {

    .responseText,
    .errorText {
        padding: 12px;
        margin: 10px 20px;
        font-size: 14px;
    }
}

.radioGroup {
    color: #323130;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 5px;
    padding: 12px 8px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.radioGroup label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 120px;
    justify-content: center;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radioGroup label:hover {
    background-color: #f3f2f1;
}

.radioGroup input[type="radio"] {
    margin: 0;
    transform: scale(1.0);
}

@media (min-width: 280px) {
    .radioGroup {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 8px;
        margin: 12px 8px;
        padding: 12px 6px;
    }

    .radioGroup label {
        width: auto;
        max-width: none;
        min-width: 60px;
        padding: 8px 6px;
    }

    .radioGroup input[type="radio"] {
        transform: scale(1.05);
    }
}

@media (min-width: 350px) {
    .radioGroup {
        gap: 12px;
        margin: 12px 10px;
        padding: 14px 10px;
    }

    .radioGroup label {
        padding: 8px 10px;
        min-width: 70px;
    }
}

@media (min-width: 400px) {
    .radioGroup {
        gap: 18px;
        margin: 15px 15px;
        padding: 15px;
    }

    .radioGroup label {
        padding: 8px 12px;
    }
}

@media (min-width: 500px) {
    .radioGroup {
        gap: 25px;
        margin: 15px 20px;
        padding: 15px;
    }

    .radioGroup label {
        padding: 8px 15px;
    }

    .radioGroup input[type="radio"] {
        transform: scale(1.1);
    }
}

.sso-error-content {
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.error-title {
    color: #d13438;
    margin-bottom: 15px;
    font-size: 18px;
}

.error-instructions {
    margin: 15px 0;
    color: #323130;
    line-height: 1.4;
}

.error-steps {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background-color: #f3f2f1;
    border-radius: 4px;
}

.error-steps p {
    margin: 10px 0 5px 0;
    font-weight: bold;
}

.error-steps ol {
    margin: 10px 0;
    padding-left: 20px;
}

.error-steps li {
    margin: 8px 0;
    line-height: 1.3;
}

.fallback-message {
    margin-top: 20px;
    color: #605e5c;
    font-size: 14px;
}

#retryAuthButton:hover {
    background-color: #106ebe;
}

#retryAuthButton:disabled {
    background-color: #a19f9d;
    cursor: not-allowed;
}

/* Main container styling - responsive */
#addin-ui {
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
    min-width: 250px;
}

@media (min-width: 320px) {
    #addin-ui {
        padding: 15px;
    }
}

@media (min-width: 400px) {
    #addin-ui {
        padding: 20px;
    }
}

/* Progress container enhanced styling - responsive */
#progressContainer {
    margin: 10px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 350px) {
    #progressContainer {
        margin: 15px;
        padding: 16px;
    }
}

@media (min-width: 450px) {
    #progressContainer {
        margin: 20px;
        padding: 20px;
    }
}

#progressText {
    font-weight: 600;
    color: #323130;
    font-size: 14px;
}

/* Enhanced progress bar */
#progressBar {
    background: linear-gradient(90deg, #0078d4 0%, #106ebe 100%);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 120, 212, 0.3);
}

/* UI Container styling - responsive */
#uiContainer {
    margin: 10px;
    min-height: 30px;
}

/* Time elapsed styling - responsive */
#timeElapsed {
    margin: 10px;
    padding: 8px;
    text-align: center;
    font-weight: 500;
    border-radius: 6px;
    font-size: 13px;
}

@media (min-width: 350px) {
    #uiContainer {
        margin: 12px 15px;
        min-height: 35px;
    }

    #timeElapsed {
        margin: 12px 15px;
        padding: 9px;
        font-size: 14px;
    }
}

@media (min-width: 450px) {
    #uiContainer {
        margin: 15px 20px;
        min-height: 40px;
    }

    #timeElapsed {
        margin: 15px 20px;
        padding: 10px;
        font-size: 14px;
    }
}

/* Button container improvements */
#button-container {
    margin: 20px 0;
}

/* Progress bar component styling - responsive */
.progress-text-container {
    margin-bottom: 5px;
}

.progress-bar-container {
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    height: 16px;
    margin: 5px 0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0078d4 0%, #106ebe 100%);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 120, 212, 0.3);
    transition: width 0.3s ease;
}

@media (min-width: 350px) {
    .progress-bar-container {
        height: 18px;
    }
}

@media (min-width: 450px) {
    .progress-bar-container {
        height: 20px;
    }
}