:root {
    --first: #1ba4c8;
    --second: #1892B2;
    --custom-bg: #252530;
    --box-bg: #f4fbfd;
 }

/*------------------------------------
 DARK THEME
------------------------------------*/
[data-theme="dark"] {
    --first: #1ba4c8;
    --second: #1892B2;
    --custom-bg: #252530;
    --box-bg: #1e1f28;
}

button.primary { text-transform: none; }
.flex { flex: 1; }
.noflex { flex: 0 0 auto !important; }

input[type=text], textarea, select, button {
    margin-bottom: 0px;
}

button.primary:disabled {
  cursor: not-allowed;
  color: #8A9AA0;
  background: #DBE4E7;
  text-shadow: none;
  border: 1px solid #AFAFAF;
  border-top: 1px solid #C4C4C4;
  border-left: 1px solid #C4C4C4;
  -webkit-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.35);
  -moz-box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.35);
  box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.35);
}


/* This works perfectly in both themes without changes */
.custom-qtip {
  background: #1f2937; /* gray-700 */
  color: #f3f4f6; /* gray-50 */
  border: 1px solid #86888a; /* gray-600 */
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color .15s ease, color .15s ease;
}
.custom-qtip .qtip-content {
  padding: 5px 10px;
}
.custom-qtip .qtip-tip { /* tip */
  background: #1f2937;
  border-color: #86888a;
}


/* ICON */
svg.icon  {
    stroke: #919192;
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

 #testing-message {
    position: fixed;
    top: 70px;
    right: 10px;
    background: #ffeb3b;
    color: #000;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* Animated Icon */
.upload-area-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  border: 2px dashed var(--first) !important;
  background: var(--box-bg) !important;
}
.upload-area-custom:hover {
    border-color: var(--second) !important;
    background: rgba(30, 182, 222, 0.05) !important;
}
.upload-area-custom i, 
.upload-icon i {
  animation: bounce 2s infinite;
  font-size: 3rem;
  margin-bottom: 10px;
}

.upload-area-custom span {
  font-weight: bold;
  color: #333;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}







/* ===== TOOL LOADER: VISUAL STYLES ===== */
#ToolsContainer {
    position: relative;
    min-height: 200px;
    overflow: visible;
}

#ToolLoader.tool-loader {
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    background: var(--background, #ffffff);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ToolLoader.tool-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgb(153 156 167 / 35%);
    border-top-color: var(--primary, #007bff);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 0.85rem;
    color: var(--text, #333333);
    font-weight: 500;
}

