/* Colours follow the Outlook theme: taskpane.js copies Office.context.officeTheme into these
   variables (and on OfficeThemeChanged). The values below are the fallback: light, or dark when the
   browser/OS asks for it. */
:root {
    --pane-bg: #ffffff;
    --pane-fg: #242424;
    --pane-muted: #616161;
    --info-fg: #0f6cbd;
    --success-fg: #107c10;
    --warning-fg: #8a6d00;
    --error-fg: #c50f1f;
}

@media (prefers-color-scheme: dark) {
    :root {
        --pane-bg: #292929;
        --pane-fg: #ffffff;
        --pane-muted: #c8c8c8;
        --info-fg: #62abf5;
        --success-fg: #54b054;
        --warning-fg: #f2c661;
        --error-fg: #f1707b;
    }
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--pane-bg);
    color: var(--pane-fg);
}

ul, p, h1, h2, h3 {
    margin: 0;
    padding: 0;
}

.ms-welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 100vh;
}

.ms-welcome__header {
    /*min-height: 250px;*/
    padding: 20px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

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

.ms-Button {
    width: 100%;
    margin: 5px 0;
}

/* Status boxes: text in the theme-aware colour, a translucent tint behind it (readable on light and dark). */
.status-info,
.status-success,
.status-warning,
.status-error {
    padding: 10px;
    border-radius: 3px;
    border: 1px solid currentColor;
}

.status-info {
    color: var(--info-fg);
    background-color: rgba(15, 108, 189, 0.12);
}

.status-success {
    color: var(--success-fg);
    background-color: rgba(16, 124, 16, 0.12);
}

.status-warning {
    color: var(--warning-fg);
    background-color: rgba(138, 109, 0, 0.12);
}

.status-error {
    color: var(--error-fg);
    background-color: rgba(197, 15, 31, 0.12);
}

.ms-Button--primary {
    background: linear-gradient(-45deg, #0c59db, #1e3a8a, #3730a3, #0c59db);
    background-size: 400% 400%;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    border: none !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: gradientShift 4s ease infinite; 
    box-shadow: 0 4px 15px rgba(12, 89, 219, 0.4);
}

    .ms-Button--primary:hover {
        background: linear-gradient(-45deg, #1e3a8a, #d83b01, #4f46e5, #1e3a8a);
        background-size: 400% 400%;
        animation: gradientShift 2s ease infinite;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(12, 89, 219, 0.6);
    }

    .ms-Button--primary:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(12, 89, 219, 0.5);
    }

    .ms-Button--primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .ms-Button--primary:hover::before {
        left: 100%;
    }

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
