/* /Pages/Agent.razor.rz.scp.css */
/* Ensure the main-container is centered */
.main-container[b-r9bijuic72] {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    width: 100%;
    margin: 0 auto; /* Center the container */
    overflow-y: hidden;
    transition: margin-left 0.3s, width 0.3s;
}

.branding[b-r9bijuic72] {
    position: fixed; /* Keep the branding fixed relative to the viewport */
    top: 40%; /* Position halfway down the screen */
    left: calc(50% + 9rem); /* Adjust left position dynamically based on sidebar state */
    transform: translateX(-50%); /* Center the element horizontally from its calculated left position */
    width: auto; /* Maintain original width */
    z-index: 2; /* Ensures it stays on top of other content */
    transition: left 0.2s; /* Smooth transition for horizontal movement */
}

/* Adjusts the logo position when sidebar is closed */
.main-container.sidebar-closed .branding[b-r9bijuic72] {
    left: 52%; /* Center the logo when sidebar is closed */
}

.pre-chat-image[b-r9bijuic72] {
    max-width: 600px; /* Maximum width of the image */
    width: 90%; /* Adjust width as necessary, but no more than 90% of its container */
    height: auto; /* Maintain aspect ratio */
}

body[b-r9bijuic72], html[b-r9bijuic72] {
    overflow-y: auto; /* Prevent scrolling on the body and html elements */
}

mud-main-content[b-r9bijuic72] {
    overflow: hidden;
}

.chat-box[b-r9bijuic72] {
    flex-grow: 1;
    padding: 10px;
    align-self: center;
    background-color: #fff;
    width: 85%; /* Set chat-box to take full width */
    box-sizing: border-box; /* Ensure padding is included in the width */
    overflow-y: auto; /* Allow vertical scrolling */
    height: 100%; /* Ensure the chat-box takes full height */
    max-width: 1200px; 
}

.input-group[b-r9bijuic72] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    position: fixed;
    bottom: 26px; /* leave a small gap from the bottom of the viewport */
    width: 85%; /* Match chat-box width */
    max-width: 1200px; /* Match chat-box max-width */
    margin-left: 2rem;
    margin-right: auto; /* center */
    box-sizing: border-box;
    z-index: 1000;
    transition: width 0.2s, box-shadow .2s ease, backdrop-filter .2s ease;
    /* Solid white container like ChatGPT */
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.06);
}

.input-group.sidebar-closed[b-r9bijuic72] {
    left: 50%;
    transform: translateX(-50%); /* Center the input group */
}

.chat-spacer[b-r9bijuic72] {
    height: 120px; /* ensure last messages are visible above fixed bar + whiteout */
}

/* Bottom whiteout overlay similar to ChatGPT */
.bottom-whiteout[b-r9bijuic72] {
    position: fixed;
    left: auto;
    right: auto;
    bottom: 0;
    width: 85%;
    max-width: 1200px;
    margin-left: 2rem;
    margin-right: auto;
    height: 120px; /* covers area under input and provides fade */
    pointer-events: none; /* allow clicks to pass through */
    z-index: 900; /* just under input bar */
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 55%, #ffffff 100%);
}
.bottom-whiteout.sidebar-closed[b-r9bijuic72] {
    left: 50%;
    transform: translateX(-50%);
}

.input-group .input-text[b-r9bijuic72] {
    flex-grow: 1;
    display: flex;
    align-items: center; /* Add this to vertically center the input */
}

.input-group .input-text .mud-input[b-r9bijuic72],
.input-group .input-text .mud-input-control[b-r9bijuic72],
.input-group .input-text .mud-input-element[b-r9bijuic72] {
    width: 100%;
}
.input-group .input-text .mud-input[b-r9bijuic72] {
    background: #fff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input-group .input-text .mud-input:focus-within[b-r9bijuic72] {
    border-color: var(--mud-palette-primary) !important;
    box-shadow: 0 0 0 3px rgba(245, 128, 38, 0.18);
}
.input-group .input-text .mud-input-element[b-r9bijuic72] {
    background: transparent !important;
    color: #0b1020 !important;
    padding: 10px 12px !important; /* tighter so first line sits right */
    min-height: 40px; /* smaller base height */
    max-height: 140px; /* cap height before scrolling */
    overflow-y: auto; /* scroll long content */
    box-sizing: border-box;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    white-space: pre-wrap; /* respect newlines, wrap long lines */
}

.input-group .send-button[b-r9bijuic72] {
    height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    margin-left: 4px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mud-palette-primary), #ff9b4d) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(245, 128, 38, 0.35), 0 2px 6px rgba(0,0,0,0.12) !important;
    transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}
.input-group .send-button:hover:not(.mud-disabled)[b-r9bijuic72] {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(245, 128, 38, 0.38), 0 4px 10px rgba(0,0,0,0.14) !important;
}
.input-group .send-button.mud-disabled[b-r9bijuic72] {
    filter: grayscale(40%);
    opacity: .6;
    box-shadow: none !important;
}

.chat-message[b-r9bijuic72] {
    font-size: 1.2rem;
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 20px;
}

.chat-message.user-message[b-r9bijuic72] {
    justify-content: flex-end;
}

.chat-message.bot-message[b-r9bijuic72] {
    justify-content: flex-start;
}

.chat-bubble[b-r9bijuic72] {
    max-width: 100%;
    padding: 16px 20px;
    border-radius: 8px;
    background-color: #f1f1f1;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure content stays within the bubble */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message.user-message .chat-bubble[b-r9bijuic72] {
    background-color: #d1eaff;
}

.chat-message.bot-message .chat-bubble[b-r9bijuic72] {
    background-color: white;
    width: 100%;
}

pre[b-r9bijuic72] {
    white-space: pre-wrap; /* Ensure the text wraps */
    word-wrap: break-word; /* Ensure the text wraps */
    font-family: inherit; /* Inherit font from parent */
    font-size: inherit; /* Inherit font size from parent */
}

.thinking-loader[b-r9bijuic72] {
    display: inline-block;
    animation: pulseFade-b-r9bijuic72 1.2s ease-in-out infinite;
}

.thinking-loader .dots[b-r9bijuic72] {
    display: inline-block;
    min-width: 1ch; /* ensure space reserved even at 0 dots */
}

@keyframes pulseFade-b-r9bijuic72 {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container[b-r9bijuic72] {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start; /* Adjust for smaller screens */
    }
    .chat-box[b-r9bijuic72] {
        width: 100%;
        margin-left: 0;
    }
    .input-group[b-r9bijuic72] {
        left: 0;
        width: 100%; /* Full width for smaller screens */
        max-width: none; /* Remove the max-width constraint for smaller screens */
        transform: none; /* Reset transform */
    }
    .clear-button[b-r9bijuic72] {
        min-width: auto;
        padding: 6px 12px;
    }
}

.clear-button[b-r9bijuic72] {
    margin-right: 10px;
    margin-left: 0px !important;
    height: 40px;
    min-width: 120px;
    border-radius: 20px !important;
    text-transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    padding: 0 16px !important;
}

.input-group .mud-button.clear-button[b-r9bijuic72] {
    border-radius: 20px !important;
    margin-left: 0 !important;
}

.clear-button:hover[b-r9bijuic72] {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .clear-button[b-r9bijuic72] {
        min-width: auto !important;
        padding: 6px 12px !important;
        margin-left: 0 !important;
    }
}
/* /Pages/GenieGuide.razor.rz.scp.css */
.genie-alert-wrapper[b-zoualcatzn] {
  position: relative;
  z-index: 2;
}
.genie-hero[b-zoualcatzn] {
  position: relative;
  padding: 28px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(1200px 400px at -10% -50%, rgba(25, 118, 210, 0.12), rgba(25, 118, 210, 0))
      , radial-gradient(1000px 400px at 110% 120%, rgba(25, 118, 210, 0.10), rgba(25, 118, 210, 0));
  border: 1px solid rgba(25, 118, 210, 0.15);
}

.genie-hero-gradient[b-zoualcatzn] {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.95) 100%);
  pointer-events: none;
  z-index: -1;
}

.genie-hero-blur[b-zoualcatzn] {
  position: absolute;
  width: 240px;
  height: 240px;
  left: -60px;
  top: -60px;
  background: rgba(25, 118, 210, 0.22);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.genie-hero-blur.right[b-zoualcatzn] {
  left: auto;
  right: -60px;
  top: auto;
  bottom: -60px;
}

.genie-hero-grid[b-zoualcatzn] {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(25, 118, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 118, 210, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0.5), rgba(0,0,0,0));
  pointer-events: none;
  z-index: -1;
}

.genie-hero-accent[b-zoualcatzn] {
  position: absolute;
  right: 10%;
  top: 15%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(25,118,210,0.25), rgba(25,118,210,0));
  pointer-events: none;
  z-index: -1;
}

.genie-hero-content[b-zoualcatzn] {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 1;
}

.hero-title-right[b-zoualcatzn] {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.genie-hero-actions[b-zoualcatzn] {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 12px;
  z-index: 1;
}

.genie-hero-icon[b-zoualcatzn] {
  color: rgb(25, 118, 210);
  background: rgba(25,118,210,0.08);
  border: 1px solid rgba(25,118,210,0.20);
  border-radius: 14px;
  padding: 10px;
}

.genie-alert[b-zoualcatzn] {
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.96) !important;
  color: #0b2e5b !important;
  border: 1px solid rgba(25,118,210,0.35) !important;
}

.genie-alert-wrapper + .genie-alert-wrapper .genie-alert[b-zoualcatzn] {
  background: #fff9e6 !important;
  color: #4d3b00 !important;
  border-color: rgba(255,193,7,0.55) !important; /* warning accent */
}

.section-card[b-zoualcatzn] {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
}

.equal-col .mud-card[b-zoualcatzn] {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.equal-col .mud-card-content[b-zoualcatzn] {
  flex: 1 1 auto;
}

.pretty-list li[b-zoualcatzn] {
  border-left: 3px solid rgba(25,118,210,0.15);
  padding-left: 10px;
  margin: 4px 0;
}

.prompt[b-zoualcatzn] {
  background: #0b1020;
  color: #e7eefc;
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.chipset-center[b-zoualcatzn] {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .genie-hero[b-zoualcatzn] {
    padding: 20px;
  }
  .genie-hero-actions[b-zoualcatzn] {
    flex-wrap: wrap;
  }
}


/* /Pages/Home.razor.rz.scp.css */
/* Ensure the main-container is centered */
.main-container[b-1wkx843lcf] {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    width: 100%;
    margin: 0 auto; /* Center the container */
    overflow-y: hidden;
    transition: margin-left 0.3s, width 0.3s;
}

.branding[b-1wkx843lcf] {
    position: fixed; /* Keep the branding fixed relative to the viewport */
    top: 40%; /* Position halfway down the screen */
    left: calc(50% + 9rem); /* Adjust left position dynamically based on sidebar state */
    transform: translateX(-50%); /* Center the element horizontally from its calculated left position */
    width: auto; /* Maintain original width */
    z-index: 2; /* Ensures it stays on top of other content */
    transition: left 0.2s; /* Smooth transition for horizontal movement */
}

/* Adjusts the logo position when sidebar is closed */
.main-container.sidebar-closed .branding[b-1wkx843lcf] {
    left: 52%; /* Center the logo when sidebar is closed */
}

.pre-chat-image[b-1wkx843lcf] {
    max-width: 600px; /* Maximum width of the image */
    width: 90%; /* Adjust width as necessary, but no more than 90% of its container */
    height: auto; /* Maintain aspect ratio */
}

body[b-1wkx843lcf], html[b-1wkx843lcf] {
    overflow-y: auto; /* Prevent scrolling on the body and html elements */
}

mud-main-content[b-1wkx843lcf] {
    overflow: hidden;
}

.chat-box[b-1wkx843lcf] {
    flex-grow: 1;
    padding: 10px;
    align-self: center;
    background-color: #fff;
    width: 85%; /* Set chat-box to take full width */
    box-sizing: border-box; /* Ensure padding is included in the width */
    overflow-y: auto; /* Allow vertical scrolling */
    height: 100%; /* Ensure the chat-box takes full height */
    max-width: 1200px; 
}

.input-group[b-1wkx843lcf] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    position: fixed;
    bottom: 26px; /* leave a small gap from the bottom of the viewport */
    width: 85%; /* Match chat-box width */
    max-width: 1200px; /* Match chat-box max-width */
    margin-left: 2rem;
    margin-right: auto; /* center */
    box-sizing: border-box;
    z-index: 1000;
    transition: width 0.2s, box-shadow .2s ease, backdrop-filter .2s ease;
    /* Solid white container like ChatGPT */
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.06);
}

.input-group.sidebar-closed[b-1wkx843lcf] {
    left: 50%;
    transform: translateX(-50%); /* Center the input group */
}

.chat-spacer[b-1wkx843lcf] {
    height: 120px; /* ensure last messages are visible above fixed bar + whiteout */
}

/* Bottom whiteout overlay similar to ChatGPT */
.bottom-whiteout[b-1wkx843lcf] {
    position: fixed;
    left: auto;
    right: auto;
    bottom: 0;
    width: 85%;
    max-width: 1200px;
    margin-left: 2rem;
    margin-right: auto;
    height: 120px; /* covers area under input and provides fade */
    pointer-events: none; /* allow clicks to pass through */
    z-index: 900; /* just under input bar */
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff 55%, #ffffff 100%);
}
.bottom-whiteout.sidebar-closed[b-1wkx843lcf] {
    left: 50%;
    transform: translateX(-50%);
}

.input-group .input-text[b-1wkx843lcf] {
    flex-grow: 1;
    display: flex;
    align-items: center; /* Add this to vertically center the input */
}

.input-group .input-text .mud-input[b-1wkx843lcf],
.input-group .input-text .mud-input-control[b-1wkx843lcf],
.input-group .input-text .mud-input-element[b-1wkx843lcf] {
    width: 100%;
}
.input-group .input-text .mud-input[b-1wkx843lcf] {
    background: #fff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input-group .input-text .mud-input:focus-within[b-1wkx843lcf] {
    border-color: var(--mud-palette-primary) !important;
    box-shadow: 0 0 0 3px rgba(245, 128, 38, 0.18);
}
.input-group .input-text .mud-input-element[b-1wkx843lcf] {
    background: transparent !important;
    color: #0b1020 !important;
    padding: 10px 12px !important; /* tighter so first line sits right */
    min-height: 40px; /* smaller base height */
    max-height: 140px; /* cap height before scrolling */
    overflow-y: auto; /* scroll long content */
    box-sizing: border-box;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    white-space: pre-wrap; /* respect newlines, wrap long lines */
}

.input-group .send-button[b-1wkx843lcf] {
    height: 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    margin-left: 4px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mud-palette-primary), #ff9b4d) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(245, 128, 38, 0.35), 0 2px 6px rgba(0,0,0,0.12) !important;
    transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}
.input-group .send-button:hover:not(.mud-disabled)[b-1wkx843lcf] {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(245, 128, 38, 0.38), 0 4px 10px rgba(0,0,0,0.14) !important;
}
.input-group .send-button.mud-disabled[b-1wkx843lcf] {
    filter: grayscale(40%);
    opacity: .6;
    box-shadow: none !important;
}

.chat-message[b-1wkx843lcf] {
    font-size: 1.2rem;
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 20px;
}

.chat-message.user-message[b-1wkx843lcf] {
    justify-content: flex-end;
}

.chat-message.bot-message[b-1wkx843lcf] {
    justify-content: flex-start;
}

.chat-bubble[b-1wkx843lcf] {
    max-width: 100%;
    padding: 15px;
    border-radius: 10px;
    background-color: #f1f1f1;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure content stays within the bubble */
}

.chat-message.user-message .chat-bubble[b-1wkx843lcf] {
    background-color: #d1eaff;
}

.chat-message.bot-message .chat-bubble[b-1wkx843lcf] {
    background-color: white;
    width: 100%;
}

pre[b-1wkx843lcf] {
    white-space: pre-wrap; /* Ensure the text wraps */
    word-wrap: break-word; /* Ensure the text wraps */
    font-family: inherit; /* Inherit font from parent */
    font-size: inherit; /* Inherit font size from parent */
}

.thinking-loader[b-1wkx843lcf] {
    display: inline-block;
    animation: pulseFade-b-1wkx843lcf 1.2s ease-in-out infinite;
}

.thinking-loader .dots[b-1wkx843lcf] {
    display: inline-block;
    min-width: 1ch; /* ensure space reserved even at 0 dots */
}

@keyframes pulseFade-b-1wkx843lcf {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container[b-1wkx843lcf] {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start; /* Adjust for smaller screens */
    }
    .chat-box[b-1wkx843lcf] {
        width: 100%;
        margin-left: 0;
    }
    .input-group[b-1wkx843lcf] {
        left: 0;
        width: 100%; /* Full width for smaller screens */
        max-width: none; /* Remove the max-width constraint for smaller screens */
        transform: none; /* Reset transform */
    }
    .clear-button[b-1wkx843lcf] {
        min-width: auto;
        padding: 6px 12px;
    }
}

.clear-button[b-1wkx843lcf] {
    margin-right: 10px;
    margin-left: 0px !important;
    height: 40px;
    min-width: 120px;
    border-radius: 20px !important;
    text-transform: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out !important;
    padding: 0 16px !important;
}

.input-group .mud-button.clear-button[b-1wkx843lcf] {
    border-radius: 20px !important;
    margin-left: 0 !important;
}

.clear-button:hover[b-1wkx843lcf] {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 768px) {
    .clear-button[b-1wkx843lcf] {
        min-width: auto !important;
        padding: 6px 12px !important;
        margin-left: 0 !important;
    }
}
/* /Pages/Upload.razor.rz.scp.css */
/* ==================== BASE CONTAINER ==================== */
.upload-container[b-vwhmlwi31k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    border: 3px dashed #e0e0e0;
    position: relative;
    min-height: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* ==================== DRAG OVER STATE ==================== */
.upload-container.dragging[b-vwhmlwi31k] {
    transform: scale(1.02);
    border: 3px solid #ff6b35;
    background: #fff5f2;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2), 0 0 0 5px rgba(255, 107, 53, 0.1);
}

.upload-container.dragging .upload-area[b-vwhmlwi31k] {
    opacity: 1;
}

/* removed upload-icon styling */

.upload-container.dragging .upload-header[b-vwhmlwi31k],
.upload-container.dragging .upload-subtext[b-vwhmlwi31k] {
    color: #ff6b35 !important;
}

/* ==================== INITIAL UPLOAD AREA ==================== */
.upload-area[b-vwhmlwi31k] {
    text-align: center;
    padding: 40px 20px;
    z-index: 1;
    transition: all 0.4s ease;
    width: 100%;
    pointer-events: none;
}

/* removed icon wrapper styling */

/* removed upload-icon styling */

.upload-header[b-vwhmlwi31k] {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333;
    margin: 20px 0 10px 0 !important;
    transition: all 0.3s ease;
}

.upload-subtext[b-vwhmlwi31k] {
    color: #777 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

.upload-info-box[b-vwhmlwi31k] {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f4f8;
    border: 1px solid #b3d9e6;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 20px 0 10px 0;
    max-width: 500px;
}

.info-icon[b-vwhmlwi31k] {
    color: #2196f3 !important;
    font-size: 20px !important;
    flex-shrink: 0;
}

.upload-info-text[b-vwhmlwi31k] {
    color: #2c5d73 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Visually hide but keep accessible/clickable via JS */
.file-input-hidden[b-vwhmlwi31k],
.file-input-hidden input[type="file"][b-vwhmlwi31k] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

/* Alternative hiding method for maximum compatibility (global to bypass CSS isolation) */
:global(input[type="file"]#fileInput)[b-vwhmlwi31k] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

.upload-actions[b-vwhmlwi31k] {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

.upload-divider[b-vwhmlwi31k] {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.browse-button[b-vwhmlwi31k] {
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    text-transform: none !important;
    background-color: #ff6b35 !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
    transition: all 0.3s ease !important;
}

.browse-button:hover[b-vwhmlwi31k] {
    background-color: #ff5520 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4) !important;
}

.browse-button:active[b-vwhmlwi31k] {
    transform: translateY(0);
}

/* ==================== UPLOADING STATE ==================== */
.upload-container.uploading[b-vwhmlwi31k] {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    border: 3px solid #ff6b35;
}

.upload-container.uploading .upload-area[b-vwhmlwi31k] {
    display: none !important;
}

/* Ensure initial cloud icon never overlaps during upload */
.upload-container.uploading .icon-wrapper[b-vwhmlwi31k],
.upload-container.uploading .upload-icon[b-vwhmlwi31k] {
    display: none !important;
}

/* Also hide header, subtext, and actions to ensure entire initial area vanishes */
.upload-container.uploading .upload-header[b-vwhmlwi31k],
.upload-container.uploading .upload-subtext[b-vwhmlwi31k],
.upload-container.uploading .upload-actions[b-vwhmlwi31k] {
    display: none !important;
}

.uploading-state[b-vwhmlwi31k] {
    text-align: center;
    z-index: 1;
    animation: fadeIn-b-vwhmlwi31k 0.5s ease;
}

.upload-spinner[b-vwhmlwi31k] {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.spinner-ring[b-vwhmlwi31k] {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #ff6b35;
    border-radius: 50%;
    animation: spin-b-vwhmlwi31k 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2)[b-vwhmlwi31k] {
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    border-top-color: #ff8555;
    animation-delay: 0.2s;
    animation-duration: 1.8s;
}

.spinner-ring:nth-child(3)[b-vwhmlwi31k] {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #ffa075;
    animation-delay: 0.4s;
    animation-duration: 2.1s;
}

/* removed spinner icon styling */

.uploading-text[b-vwhmlwi31k] {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    font-size: 22px !important;
}

.uploading-subtext[b-vwhmlwi31k] {
    color: #666 !important;
    margin-bottom: 30px !important;
}

.progress-bar[b-vwhmlwi31k] {
    width: 80%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill[b-vwhmlwi31k] {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8555 100%);
    border-radius: 10px;
    animation: progress-b-vwhmlwi31k 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

/* ==================== SUCCESS STATE ==================== */
.upload-container.success[b-vwhmlwi31k] {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border: 3px solid #48bb78;
}

.upload-container.success .upload-area[b-vwhmlwi31k] {
    display: none !important;
}

/* Defensive: hide any leftover upload icons in success state */
.upload-container.success .icon-wrapper[b-vwhmlwi31k],
.upload-container.success .upload-icon[b-vwhmlwi31k],
.upload-container.success .spinner-icon[b-vwhmlwi31k] {
    display: none !important;
}

.upload-container.success .upload-header[b-vwhmlwi31k],
.upload-container.success .upload-subtext[b-vwhmlwi31k],
.upload-container.success .upload-actions[b-vwhmlwi31k] {
    display: none !important;
}

.success-state[b-vwhmlwi31k] {
    text-align: center;
    z-index: 1;
    animation: fadeInScale-b-vwhmlwi31k 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-checkmark[b-vwhmlwi31k] {
    margin: 0 auto 30px;
}

.check-icon[b-vwhmlwi31k] {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    margin: 0 auto;
}

.icon-circle[b-vwhmlwi31k] {
    width: 100px;
    height: 100px;
    position: absolute;
    border-radius: 50%;
    background-color: white;
    animation: scaleCircle-b-vwhmlwi31k 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.2);
}

.icon-line[b-vwhmlwi31k] {
    height: 6px;
    background-color: #48bb78;
    display: block;
    border-radius: 3px;
    position: absolute;
    z-index: 2;
}

.line-tip[b-vwhmlwi31k] {
    top: 52px;
    left: 18px;
    width: 30px;
    transform: rotate(45deg);
    animation: checkTip-b-vwhmlwi31k 0.8s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.line-long[b-vwhmlwi31k] {
    top: 45px;
    right: 10px;
    width: 55px;
    transform: rotate(-45deg);
    animation: checkLong-b-vwhmlwi31k 0.8s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* removed icon-fix - was causing white blemish */

.success-title[b-vwhmlwi31k] {
    color: #2d3748 !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    font-size: 26px !important;
}

.success-details[b-vwhmlwi31k] {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.success-detail-line[b-vwhmlwi31k] {
    color: #4a5568 !important;
    margin: 8px 0 !important;
    font-size: 14px !important;
    font-family: 'Courier New', monospace !important;
    word-break: break-all;
}

.upload-another-btn[b-vwhmlwi31k] {
    margin-top: 20px !important;
    background: #48bb78 !important;
    color: white !important;
    border: 2px solid #48bb78 !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.upload-another-btn:hover[b-vwhmlwi31k] {
    background: #38a169 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3) !important;
}

/* ==================== ERROR STATE ==================== */
.upload-container.error[b-vwhmlwi31k] {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 3px solid #f56565;
}

.upload-container.error .upload-area[b-vwhmlwi31k] {
    display: none !important;
}

/* Defensive: hide any leftover upload icons in error state */
.upload-container.error .icon-wrapper[b-vwhmlwi31k],
.upload-container.error .upload-icon[b-vwhmlwi31k],
.upload-container.error .spinner-icon[b-vwhmlwi31k] {
    display: none !important;
}

.upload-container.error .upload-header[b-vwhmlwi31k],
.upload-container.error .upload-subtext[b-vwhmlwi31k],
.upload-container.error .upload-actions[b-vwhmlwi31k] {
    display: none !important;
}

.error-state[b-vwhmlwi31k] {
    text-align: center;
    z-index: 1;
    animation: shake-b-vwhmlwi31k 0.5s ease;
}

.error-icon-wrapper[b-vwhmlwi31k] {
    animation: errorPulse-b-vwhmlwi31k 1s ease-in-out;
}

.error-icon[b-vwhmlwi31k] {
    font-size: 80px !important;
    color: #f56565 !important;
    filter: drop-shadow(0 4px 12px rgba(245, 101, 101, 0.3));
}

.error-title[b-vwhmlwi31k] {
    color: #2d3748 !important;
    font-weight: 700 !important;
    margin: 20px 0 15px 0 !important;
    font-size: 24px !important;
}

.error-message[b-vwhmlwi31k] {
    color: #4a5568 !important;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0 !important;
    border: 1px solid #fc8181;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.1);
}

.try-again-btn[b-vwhmlwi31k] {
    margin-top: 20px !important;
    background: #f56565 !important;
    color: white !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.try-again-btn:hover[b-vwhmlwi31k] {
    background: #e53e3e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 101, 101, 0.3) !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float-b-vwhmlwi31k {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes spin-b-vwhmlwi31k {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-b-vwhmlwi31k {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes progress-b-vwhmlwi31k {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn-b-vwhmlwi31k {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale-b-vwhmlwi31k {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleCircle-b-vwhmlwi31k {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkTip-b-vwhmlwi31k {
    0% {
        width: 0;
        left: 18px;
        top: 52px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 30px;
        left: 18px;
        top: 52px;
        opacity: 1;
    }
}

@keyframes checkLong-b-vwhmlwi31k {
    0% {
        width: 0;
        right: 56px;
        top: 45px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 55px;
        right: 10px;
        top: 45px;
        opacity: 1;
    }
}

@keyframes shake-b-vwhmlwi31k {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes errorPulse-b-vwhmlwi31k {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .upload-container[b-vwhmlwi31k] {
        padding: 40px 30px;
        margin: 20px;
        min-height: 350px;
    }

    .upload-icon[b-vwhmlwi31k] {
        font-size: 60px !important;
    }

    .upload-header[b-vwhmlwi31k] {
        font-size: 20px !important;
    }

    .upload-spinner[b-vwhmlwi31k] {
        width: 100px;
        height: 100px;
    }

    .spinner-icon[b-vwhmlwi31k] {
        font-size: 40px !important;
    }

    .check-icon[b-vwhmlwi31k] {
        width: 80px;
        height: 80px;
    }

    .icon-circle[b-vwhmlwi31k] {
        width: 80px;
        height: 80px;
    }

    .success-details[b-vwhmlwi31k] {
        padding: 15px;
    }

    .success-detail-line[b-vwhmlwi31k] {
        font-size: 12px !important;
    }
}

