/* Microsoft Login Page Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #0078d4; /* Microsoft blue */
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    text-align: left;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
}

.user-details {
    display: flex;
    flex-direction: column;
    text-align: right;
}

#header-user-name {
    font-weight: 600;
    font-size: 1.1rem;
}

#header-user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

#header-logout-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#header-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    margin-bottom: 15px;
    color: #0078d4;
}

h3 {
    margin-bottom: 15px;
    color: #0078d4;
}

.card {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.ms-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #ffffff;
    color: #5e5e5e;
    border: 1px solid #d6d6d6;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.ms-login:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tabs Styles */
.tabs {
    width: 100%;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #f5f5f5;
    color: #0078d4;
}

.tab-btn.active {
    color: #0078d4;
    border-bottom: 3px solid #0078d4;
    font-weight: 600;
}

.tab-content {
    padding: 10px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group .form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-group .form-select {
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

.form-group .form-select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.result-container {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.result-container pre {
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
    padding: 0;
}

#at-token-result{
    white-space: nowrap !important;
    overflow-x: auto;
    user-select: all;
}
    

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #777;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
    margin: 0 10px;
}

.link-btn {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: background-color 0.3s;
}

.link-btn:hover {
    background-color: #e0e0e0;
}

#account-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

#account-info h3 {
    color: #0078d4;
    margin-bottom: 10px;
}

#account-info p {
    margin-bottom: 8px;
}

#account-info span {
    font-weight: 600;
}

#ms-logout-btn {
    background-color: #d83b01; /* Microsoft red */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#ms-logout-btn:hover {
    background-color: #c43601;
}

#api-response {
    min-height: 200px;
}

/* Toggle Switch Styles */
.toggle-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #0078d4;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #0078d4;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 14px;
    color: #333;
}

/* Logger Styles */
#logger-container {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
    min-height: 100px;
    max-height: 200px;
    margin-bottom: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.log-entry {
    padding: 3px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 13px;
}

.log-info {
    color: #333;
}

.log-success {
    color: #107c10; /* Microsoft green */
}

.log-warning {
    color: #d83b01; /* Microsoft orange */
}

.log-error {
    color: #e81123; /* Microsoft red */
    font-weight: bold;
}

.copy-link-container {
    margin-top: 15px;
    text-align: right;
}

#at-token-copy-link-btn {
    background-color: #5c2d91; /* Microsoft purple */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

#at-token-copy-link-btn:hover {
    background-color: #4a2276;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #006cbe;
}

#clear-btn {
    background-color: #777;
}

#clear-btn:hover {
    background-color: #666;
}

.hidden {
    display: none;
}


.new-build {
    background-color: #0975cd; /* Microsoft blue */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
}

.new-build:hover {
    background-color: #0c5182;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.new-build-btn {
    background-color: #107c10; /* Microsoft green */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
}

.new-build-btn:hover {
    background-color: #0b5e0b;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #777;
}

/* GUID Changer Form Styles */
#guid-changer-form {
    margin: 0 auto;
}

#guid-changer-form .form-group {
    margin-bottom: 20px;
}

#guid-changer-form .group-header {
    font-weight: 600;
    color: #0078d4;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0078d4;
    padding-bottom: 5px;
    display: inline-block;
}

#guid-changer-form .form-cluster {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#guid-changer-form .form-cluster .form-group {
    flex: 1;
    margin-bottom: 0;
}

#guid-changer-form .value-display {
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    border: 1px solid #ddd;
    min-height: 38px;
    display: flex;
    align-items: center;
}

#guid-changer-form #upload-container {
    margin-top: 10px;
}

#guid-changer-form #download {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

#guid-changer-form #download:hover {
    background-color: #106ebe;
}

#guid-changer-form .file-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border-left: 4px solid #0078d4;
    color: #333;
    font-size: 14px;
}

#guid-changer-form .error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #fde7e9;
    border-left: 4px solid #d13438;
    color: #d13438;
    font-size: 14px;
}

#guid-changer-form input[type="file"] {
    padding: 8px;
    border: 1px dashed #0078d4;
    border-radius: 4px;
    background-color: #f0f7ff;
    width: 100%;
}

#guid-changer-form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

#guid-changer-form input[type="text"]:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}
