/* 
 * 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;
 }
 
 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;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center; /* IE10 */
    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;
    -ms-flex: 1 0 0; /* IE10 */
    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;
}

#login-section, #report-selection-section {
    margin: 20px 0;
}

#login-section {
  max-width: 350px;
  width: 100%;
  margin: 30px auto 0 auto;
  box-sizing: border-box;
  padding: 2.5rem 1.2rem 2rem 1.2rem;
}

#login-section .modern-form-group {
  width: 100%;
  margin-bottom: 1.2rem;
}

#login-section .modern-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 500px) {
  #login-section {
    max-width: 98vw;
    padding: 1.5rem 0.5rem 1.5rem 0.5rem;
  }
}

.ms-TextField-field {
    display: block;
    margin: 10px 0;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

.ms-Button {
    margin-top: 10px;
}

/* Modern App UI/UX Styles */
.modern-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 350px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header, .report-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.modern-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.25rem;
}

.modern-desc {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modern-form-group {
    width: 100%;
    margin-bottom: 1rem;
}

.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafbfc;
    transition: border 0.2s;
    outline: none;
    margin-bottom: 0.25rem;
}
.modern-input:focus {
    border: 1.5px solid #acf60d;
    background: #fff;
}

.modern-btn {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.primary-btn {
    background: linear-gradient(90deg, #0078d4 60%, #005fa3 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,120,212,0.08);
}
.primary-btn:hover {
    background: linear-gradient(90deg, #005fa3 60%, #0078d4 100%);
}

button, .modern-btn, .primary-btn {
  background: #FFC93B !important;
  color: #222 !important;
  border: none;
  border-radius: 3px;
  font-weight: 700;
  transition: background 0.2s;
}
button:hover, .modern-btn:hover, .primary-btn:hover {
  background: #FFD84D !important;
}

.modern-footer-text {
    margin-top: 1.25rem;
    color: #888;
    font-size: 0.95rem;
    text-align: center;
}
.modern-link {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
}
.modern-link:hover {
    text-decoration: underline;
}

.modern-list-group {
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 6px;
    transition: background 0.15s;
}
.modern-checkbox input[type="checkbox"] {
    accent-color: #0078d4;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5em;
}
.modern-checkbox:hover {
    background: #f3f6fa;
}

/* Modern radio button styles for report selection */
.modern-radio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 6px;
    transition: background 0.15s;
}
.modern-radio input[type="radio"] {
    accent-color: #0078d4;
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.5em;
}
.modern-radio:hover {
    background: #f3f6fa;
}

/* Fix for .modern-checkbox and .modern-radio overlap */
.modern-checkbox input[type="checkbox"],
.modern-radio input[type="radio"] {
    margin-right: 0.5em;
}

/* Remove duplicate or conflicting margin/padding if any */
#login-section, #report-selection-section, #report-params-section {
    margin: 0;
}

.modern-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    z-index: 2147483647; /* Ensure toast is always on top of all content */
    transition: opacity 0.3s, bottom 0.3s;
}
.modern-toast.show {
    opacity: 1;
    bottom: 48px;
    pointer-events: auto;
}

.org-header {
    width: 100%;
    background: #f3f6fa;
    color: #222;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-bottom: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
.org-header__label {
    color: #0078d4;
    font-weight: 500;
    margin-right: 0.5rem;
}
.org-header__name {
    font-weight: 700;
    color: #005fa3;
}

@media (max-width: 500px) {
    .modern-card {
        max-width: 98vw;
        padding: 1.5rem 0.5rem 1.5rem 0.5rem;
    }
}