/* Hide scrollbar in Chrome, Edge, and Safari */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar in Firefox */
html {
    scrollbar-width: none;
}

/* Index Page Styles */
body.index-page {
    background-color: #121212;
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

main {
    flex: 1;
  }

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10; /* Ensure footer stays on top */
    color: white; /* Ensure text remains readable */
    padding: 10px 0;
}

.footer-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap: .35rem;
  line-height: 1.8;
}

.footer-nav .sep{
  opacity: .6;
  user-select:none;
}

/* optional: keep separators from starting a new line alone */
.footer-nav .sep{
  white-space:nowrap;
}

.index-heading {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff93, 0 0 20px #fdfeff53, 0 0 30px #ffffff94;
}

p.index-description {
    font-size: 1.5rem;
    margin-top: 20px;
}

.btn-primary.index-btn {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary.index-btn:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Configure Page Styles */
body.configure-page {
    background-color: #121212;
    color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}



.container {
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 80px;
}

.card.configure-card {
    background-color: #1e1e1e;
    color: #f1f1f1;

}

.btn-outline-secondary.configure-btn {
    color: #f1f1f1;
}

.btn-outline-secondary.configure-btn:hover {
    background-color: #6c757d;
    color: #fff;
}

.form-control.configure-input {
    background-color: #2a2a2a;
    color: #f1f1f1;
    border: 1px solid #6c757d;
}

.form-control.configure-input::placeholder {
    color: #6c757d;
}

.form-control.configure-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Autofill styling for dark mode inputs */
.form-control.configure-input:-webkit-autofill {
    background-color: #2a2a2a !important; /* Match your dark theme */
    -webkit-box-shadow: 0 0 0px 1000px #2a2a2a inset !important; /* Prevent autofill background from being white */
    -webkit-text-fill-color: #f1f1f1 !important; /* Ensure text stays white */
    border-color: #6c757d !important; /* Match border color */
    transition: background-color 5000s ease-in-out 0s;
}

.form-control.configure-input:-webkit-autofill:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}



.col-md-1-5.configure-col {
    flex: 0 0 12.5%;
    max-width: 12.5%;
}

/* Dashboard Page Styles */
body.dashboard-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #121212;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}


.card.dashboard-card {
    background-color: #1e1e1e;
    color: #f1f1f1;
}


.btn-outline-red {
    color: white;
    background-color: transparent;
    border-color: #f44336;
}

.btn-outline-red:hover {
    background-color: #f44336;
    color: white;
}

.btn-outline-orange {
    color: white;
    background-color: transparent;
    border-color: #ffa726;
}

.btn-outline-orange:hover {
    background-color: #ffa726;
    color: white;
}

.btn-outline-yellow {
    color: white;
    background-color: transparent;
    border-color: #ffeb3b;
}

.btn-outline-yellow:hover {
    background-color: #ffeb3b;
    color: black;
}

.btn-outline-blue {
    color: white;
    background-color: transparent;
    border-color: #2196f3;
}

.btn-outline-blue:hover {
    background-color: #2196f3;
    color: white;
}

.btn-outline-green {
    color: white;
    background-color: transparent;
    border-color: #4caf50;
}

.btn-outline-green:hover {
    background-color: #4caf50;
    color: white;
}

.btn-outline-purple {
    color: white;
    background-color: transparent;
    border-color: #9c27b0;
}

.btn-outline-purple:hover {
    background-color: #9c27b0;
    color: white;
}

.btn-red {
  background-color: #f44336;
  color: black;
  border: 1px solid #f44336;
}

.btn-red:hover {
  background-color: #e53935; /* slightly darker */
  color: black;
}

.btn-orange {
  background-color: #ffa726;
  color: black;
  border: 1px solid #ffa726;
}

.btn-orange:hover {
  background-color: #fb8c00;
  color: black;
}

.btn-yellow {
  background-color: #ffeb3b;
  color: black;
  border: 1px solid #ffeb3b;
}

.btn-yellow:hover {
  background-color: #fdd835;
  color: black;
}

.btn-blue {
  background-color: #2196f3;
  color: black;
  border: 1px solid #2196f3;
}

.btn-blue:hover {
  background-color: #1e88e5;
  color: black;
}

.btn-green {
  background-color: #4caf50;
  color: black;
  border: 1px solid #4caf50;
}

.btn-green:hover {
  background-color: #43a047;
  color: black;
}

.btn-purple {
  background-color: #9c27b0;
  color: black;
  border: 1px solid #9c27b0;
}

.btn-purple:hover {
  background-color: #8e24aa;
  color: black;
}

/* PURPLE */
.btn-purple {
  background-color: #9c27b0;
  color: black;
  border: 1px solid #9c27b0;
}

.btn-purple:hover {
  background-color: #8e24aa;
  color: black;
}

.btn-outline-purple {
  color: black;
  background-color: transparent;
  border-color: #9c27b0;
}

.btn-outline-purple:hover {
  background-color: #9c27b0;
  color: black;
}


/* VIOLET */
.btn-violet {
  background-color: #7c4dff;
  color: black;
  border: 1px solid #7c4dff;
}

.btn-violet:hover {
  background-color: #6c3cff;
  color: black;
}

.btn-outline-violet {
  color: white;
  background-color: transparent;
  border-color: #7c4dff;
}

.btn-outline-violet:hover {
  background-color: #7c4dff;
  color: black;
}


/* INDIGO */
.btn-indigo {
  background-color: #4a5fd1; /* was #3f51b5 */
  color: black;
  border: 1px solid #4a5fd1;
}

.btn-indigo:hover {
  background-color: #4256c4; /* adjusted hover */
  color: black;
}

.btn-outline-indigo {
  color: black;
  background-color: transparent;
  border-color: #4a5fd1;
}

.btn-outline-indigo:hover {
  background-color: #4a5fd1;
  color: black;
}

.text-red {
  color: #f44336 !important;
}

.text-orange {
  color: #ffa726 !important;
}

.text-yellow {
  color: #ffeb3b !important;
}

.text-blue {
  color: #2196f3 !important;
}

.text-green {
  color: #4caf50 !important;
}

.text-purple {
  color: #9c27b0 !important;
}

.dashboard-btn {
  min-width: 180px; /* Enough for longest string like "Deactivate Integration" */
  text-align: center;
  white-space: nowrap;
}

[id$='-redacted'],
[id$='-full'] {
  display: inline-block;
  min-width: 250px; /* Reserve space for full token length */
  word-break: break-all;
  vertical-align: middle;
}

/* Reset margins and padding */
label {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center-align the label and span */
    gap: 5px; /* Reduce space between the label text and input field */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any padding */
}

/* Ensure the editable span aligns properly */
.editable-span {
    display: inline-block;
    min-width: 200px; /* Adjust width as needed */
    min-height: 1.5em; /* Consistent height for vertical alignment */
    line-height: 1.5em; /* Match the height of the surrounding text */
    padding: 0; /* Remove extra padding */
    margin: 0; /* Remove any extra margin */
    vertical-align: middle; /* Ensure alignment with label text */
    border: 1px solid transparent; /* Add border only for debugging if needed */
    background-color: transparent; /* Transparent background */
    color: #ffffff; /* Default text color */
    cursor: text;
}

/* Placeholder styling */
.editable-span.placeholder {
    color: #6c757d; /* Placeholder color */
    font-style: italic; /* Italic style for placeholders */
}

/* Fix focus styles */
.editable-span:focus {
    outline: none; /* Remove default outline */
    border: 1px solid #007bff; /* Add subtle focus border */
    background-color: transparent; /* Ensure consistent background */
}

/* Small text spacing for other details */
small {
    margin: 0; /* Reset margin for small text */
    padding: 0; /* Reset padding for small text */
    display: block; /* Ensure proper spacing below */
    line-height: 1.7; /* Adjust as needed */
}





.input-group-text.dashboard-input-text {
    cursor: pointer;
}

.input-group-text.dashboard-input-text:hover {
    background-color: #343a40;
}

.dark-checkbox {
    background-color: #121212;
    border: 1px solid #6c757d;
    width: 1.25em;
    height: 1.25em;
    border-radius: 0.25em;
    outline: none;
    appearance: none;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 0.5em;
}

@media (max-width: 768px) {
    .configure-card, .dashboard-card {
        width: 100%;
        margin: 0;
    }
    body.dashboard-page, body.configure-page {
        padding: 10px;
    }
}


/* Corner Banner */
.corner-banner {
    position: fixed;
    bottom: 80px;
    right: 0;
    width: 70px;
    height: 60px;
    background-color: #007bff;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.corner-banner:hover {
    background-color: #0056b3;
}

/* Label inside the banner */
.corner-label {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
}

/* Link inside the banner */
.corner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Logo/Icon inside the banner */
.corner-icon {
    width: 50px;
    height: 50px;
    display: block;
}

/* Hover Effects */
.corner-link:hover {
    color: #ffeb3b;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between profile and user info */
    flex-wrap: wrap; /* ✅ Allows wrapping on small screens */
    justify-content: center; /* ✅ Ensures proper centering */
}

.profile-image-container {
    position: relative;
    display: inline-block;
    width: 150px;  /* ✅ Ensures it is a perfect circle */
    height: 150px;
    cursor: pointer;
    border-radius: 50%;  /* ✅ Force the whole container to be round */
    overflow: hidden;  /* ✅ Prevents any weird stretching */
}

/* ✅ When screen is smaller, stack profile image on top */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

    .user-info {
        width: 100%; /* ✅ Ensures it spans full width */
        max-width: 800px; /* ✅ Keeps it same width as other sections */
    }
}

/* User Info Container: Takes available space */
.user-info {

    width: 100%;

}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-edit-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ✅ Center perfectly */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    flex-direction: column; /* ✅ Stack icon & text properly */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    text-align: center;
}

.profile-edit-overlay i {
    font-size: 20px; /* ✅ Adjust icon size */
    margin-bottom: 5px; /* ✅ Space between icon & text */
}


.profile-image-container:hover .profile-edit-overlay {
    opacity: 1;
}

::placeholder {
    color: #bbb !important; /* Or any lighter gray for visibility */
    opacity: 1; /* Ensure it's fully visible */
  }


.version-block ul {
  line-height: 1.6;
  list-style: disc;
  padding-left: 1.5rem;
}

.version-block h6 {
  font-size: 1.1rem;
  font-weight: bold;
}

.changelog small {
  font-weight: normal;
}


/* =========================
   GLOBAL ALERT STYLES
========================= */

.alert {
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.04);
    color: #e9ecef;
    margin-bottom: 1rem;
    animation: fadeSlide 0.25s ease;
}

.alert::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}

/* success */
.alert-success::before {
    content: "✅";
    color: #51cf66;
}

/* danger */
.alert-danger::before {
    content: "❌";
    color: #ff6b6b;
}

/* warning */
.alert-warning::before {
    content: "⚠️";
    color: #ffd43b;
}

/* info */
.alert-info::before {
    content: "ℹ️";
    color: #74c0fc;
}

.alert::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #ff6b6b;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.25) inset;
}

.alert-success {
    background: rgba(25, 135, 84, 0.12);
    color: #51cf66;
    box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.25) inset;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.12);
    color: #ffd43b;
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.25) inset;
}

.alert-info {
    background: rgba(13, 202, 240, 0.12);
    color: #74c0fc;
    box-shadow: 0 0 0 1px rgba(13, 202, 240, 0.25) inset;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}