:root {
  --base-hue: 260;
  --font-family: Inter;
  --leading: 1.5;
  
  --bg-color: #000000;
  --text-color: #ffffff;
  
  --card-width: 100%;
  --card-height: auto;
  --card-padding: 2.25rem;
  --card-corner-radius: 1.5rem;
  --card-bg-blur-amount: 1rem;
  --card-shadow:     
    0 0 0.5rem 2px hsl(var(--base-hue) 25% 25% / 35%),
    inset 0 0 0.1rem hsl(var(--base-hue) 75% 40% / 20%),
    inset 0 0 0.2rem 0.1rem hsl(var(--base-hue) 75% 40% / 15%),
    inset 0 0 0.3rem 0.2rem hsl(var(--base-hue) 75% 40% / 10%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Verdana, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    font: 1em/var(--leading) var(--font-family), sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
}

p {
    margin: 0;
}

p:not(:last-child) {
    margin-bottom: 1.5rem;
}

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

.title-container {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-container div {
    position: relative;
    filter: drop-shadow(0.15em 0.1em 0.3em hsl(340, 100%, 39%));
    color: #ffffff;
    width: min(70%, 1000px);
    min-width: fit-content;
    max-width: calc(100% - 0.5em);
    transition: all ease-out 100ms;
    padding: 0 0.3em;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    /* animation: fade-out ease-out 300ms 1.2s forwards; */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Montserrat", "Arial", sans-serif;
    font-size: 3rem;
    cursor: pointer;
    transform: scale(1);
    transition: all 0.2s ease;
    text-align: center;
}

.title-container div:hover {
    transform: scale(1.05);
    filter: drop-shadow(0.2em 0.15em 0.4em hsl(340, 100%, 39%));
    transition: all 0.3s ease;
}

.title-container div i {
    font-style: normal;
    color: #ffffff;
    opacity: 0.98;
    transition: transform 0.3s ease;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #ffffff;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
}

.hamburger-icon {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.menu-content {
    position: absolute;
    top: 35px;
    right: 0;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.menu-item:hover {
    background-color: #333333;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.upload-btn {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: relative;
    border-radius: 999vw;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
        0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
    transition: all 0.3s ease;
}

.upload-btn::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: calc(100% + 0.3em);
    height: calc(100% + 0.3em);
    top: -0.15em;
    left: -0.15em;
    border-radius: inherit;
    background: linear-gradient(-135deg,
            rgba(5, 5, 5, 0.5),
            transparent 20%,
            transparent 100%);
    filter: blur(0.0125em);
    opacity: 0.25;
    mix-blend-mode: multiply;
}

.upload-btn .button-outer {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    transition: box-shadow 300ms ease;
    will-change: box-shadow;
    box-shadow: 0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
        0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
        0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25);
}

.upload-btn:hover .button-outer {
    box-shadow: 0 0 0 0 rgba(5, 5, 5, 1), 0 0 0 0 rgba(5, 5, 5, 0.5),
        0 0 0 0 rgba(5, 5, 5, 0.25);
}

.upload-btn .button-inner {
    --inset: 0.035em;
    position: relative;
    z-index: 1;
    border-radius: inherit;
    padding: 1em 1.5em;
    background-image: linear-gradient(135deg,
            rgba(230, 230, 230, 1),
            rgba(180, 180, 180, 1));
    transition: box-shadow 300ms ease, clip-path 250ms ease,
        background-image 250ms ease, transform 250ms ease;
    will-change: box-shadow, clip-path, background-image, transform;
    overflow: clip;
    clip-path: inset(0 0 0 0 round 999vw);
    box-shadow:
        /* 1 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 2 */
        -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
        /* 3 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 4 */
        0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
        /* 5 */
        0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25);
}

.upload-btn:hover .button-inner {
    clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999vw);
    box-shadow:
        /* 1 */
        0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
        /* 2 */
        -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
        /* 3 */
        0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
        /* 4 */
        0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
        /* 5 */
        0 0 0 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25);
}

.upload-btn .button-inner span {
    position: relative;
    z-index: 4;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: rgba(0, 0, 0, 0);
    background-image: linear-gradient(135deg,
            rgba(25, 25, 25, 1),
            rgba(75, 75, 75, 1));
    -webkit-background-clip: text;
    background-clip: text;
    transition: transform 250ms ease;
    display: block;
    will-change: transform;
    text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em;
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.upload-btn:hover .button-inner span {
    transform: scale(0.975);
}

.upload-btn:active .button-inner {
    transform: scale(0.975);
}

.upload-btn input[type="file"] {
    display: none;
}

.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    min-height: 100px;
}

.image-item {
    position: relative;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.image-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item .remove-btn:hover {
    background-color: #ff6666;
}

.controls {
    text-align: center;
    margin-bottom: 30px;
}

.extract-btn, .clear-btn {
    all: unset;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: relative;
    border-radius: 999vw;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
        0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
    transition: all 0.3s ease;
    margin: 0 10px;
    font-size: 1rem;
}

.extract-btn::after, .clear-btn::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: calc(100% + 0.3em);
    height: calc(100% + 0.3em);
    top: -0.15em;
    left: -0.15em;
    border-radius: inherit;
    background: linear-gradient(-135deg,
            rgba(5, 5, 5, 0.5),
            transparent 20%,
            transparent 100%);
    filter: blur(0.0125em);
    opacity: 0.25;
    mix-blend-mode: multiply;
}

.extract-btn .button-outer, .clear-btn .button-outer {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    transition: box-shadow 300ms ease;
    will-change: box-shadow;
    box-shadow: 0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
        0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
        0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25);
}

.extract-btn:hover .button-outer, .clear-btn:hover .button-outer {
    box-shadow: 0 0 0 0 rgba(5, 5, 5, 1), 0 0 0 0 rgba(5, 5, 5, 0.5),
        0 0 0 0 rgba(5, 5, 5, 0.25);
}

.extract-btn .button-inner, .clear-btn .button-inner {
    --inset: 0.035em;
    position: relative;
    z-index: 1;
    border-radius: inherit;
    padding: 1em 1.5em;
    transition: box-shadow 300ms ease, clip-path 250ms ease,
        background-image 250ms ease, transform 250ms ease;
    will-change: box-shadow, clip-path, background-image, transform;
    overflow: clip;
    clip-path: inset(0 0 0 0 round 999vw);
    box-shadow:
        /* 1 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 2 */
        -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
        /* 3 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 4 */
        0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
        /* 5 */
        0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25);
}

.extract-btn .button-inner {
    background-image: linear-gradient(135deg,
            rgba(76, 175, 80, 1),
            rgba(69, 160, 73, 1));
}

.clear-btn .button-inner {
    background-image: linear-gradient(135deg,
            rgba(244, 67, 54, 1),
            rgba(218, 25, 11, 1));
}

.extract-btn:hover .button-inner, .clear-btn:hover .button-inner {
    clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999vw);
    box-shadow:
        /* 1 */
        0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
        /* 2 */
        -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
        /* 3 */
        0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
        /* 4 */
        0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
        /* 5 */
        0 0 0 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25);
}

.extract-btn .button-inner span, .clear-btn .button-inner span {
    position: relative;
    z-index: 4;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    transition: transform 250ms ease;
    display: block;
    will-change: transform;
    text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em;
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.extract-btn:hover .button-inner span, .clear-btn:hover .button-inner span {
    transform: scale(0.975);
}

.extract-btn:active .button-inner, .clear-btn:active .button-inner {
    transform: scale(0.975);
}

.extract-btn:disabled, .clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.extract-btn:disabled .button-inner, .clear-btn:disabled .button-inner {
    background-image: linear-gradient(135deg,
            rgba(102, 102, 102, 1),
            rgba(102, 102, 102, 1));
}

.status-section {
    max-width: var(--card-width);
    min-height: var(--card-height);
    padding: var(--card-padding);
    border-radius: var(--card-corner-radius);
    background-color: hsl(var(--base-hue) 25% 35% / 5%);
    margin: 0 auto 20px;
}

.status-section.card--glass {
    font-size: 125%;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--card-bg-blur-amount));
}

.status-container {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    opacity: 0.7;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
    font-family: 'Verdana', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
}

.status-item {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid transparent;
    background-color: hsl(var(--base-hue) 25% 35% / 50%);
}

.status-item.processing {
    background-color: hsl(var(--base-hue) 25% 95% / 30%);
    border-left-color: #ffffff;
    color: #ffffff;
}

.status-item.success {
    background-color: hsl(var(--base-hue) 25% 95% / 30%);
    border-left-color: #4CAF50;
    color: #b9f9bb;
}

.status-item.error {
    background-color: hsl(var(--base-hue) 25% 95% / 30%);
    border-left-color: #f44336;
    color: #f44336;
}

.status-item .timestamp {
    color: var(--text-color);
    font-size: 11px;
    margin-right: 10px;
    opacity: 0.7;
}

.results-section {
    max-width: var(--card-width);
    min-height: var(--card-height);
    padding: var(--card-padding);
    border-radius: var(--card-corner-radius);
    background-color: hsl(var(--base-hue) 25% 35% / 5%);
    margin: 20px auto 0;
}

.results-section.card--glass {
    font-size: 125%;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--card-bg-blur-amount));
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    margin-bottom: 0;
    color: var(--text-color);
}

.results-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    all: unset;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    position: relative;
    border-radius: 999vw;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.25),
        0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-btn::after, .clear-results-btn::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: calc(100% + 0.3em);
    height: calc(100% + 0.3em);
    top: -0.15em;
    left: -0.15em;
    border-radius: inherit;
    background: linear-gradient(-135deg,
            rgba(5, 5, 5, 0.5),
            transparent 20%,
            transparent 100%);
    filter: blur(0.0125em);
    opacity: 0.25;
    mix-blend-mode: multiply;
}

.copy-btn .button-outer, .clear-results-btn .button-outer {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    transition: box-shadow 300ms ease;
    will-change: box-shadow;
    box-shadow: 0 0.05em 0.05em -0.01em rgba(5, 5, 5, 1),
        0 0.01em 0.01em -0.01em rgba(5, 5, 5, 0.5),
        0.15em 0.3em 0.1em -0.01em rgba(5, 5, 5, 0.25);
}

.copy-btn:hover .button-outer, .clear-results-btn:hover .button-outer {
    box-shadow: 0 0 0 0 rgba(5, 5, 5, 1), 0 0 0 0 rgba(5, 5, 5, 0.5),
        0 0 0 0 rgba(5, 5, 5, 0.25);
}

.copy-btn .button-inner, .clear-results-btn .button-inner {
    --inset: 0.035em;
    position: relative;
    z-index: 1;
    border-radius: inherit;
    padding: 0.5em 1em;
    transition: box-shadow 300ms ease, clip-path 250ms ease,
        background-image 250ms ease, transform 250ms ease;
    will-change: box-shadow, clip-path, background-image, transform;
    overflow: clip;
    clip-path: inset(0 0 0 0 round 999vw);
    box-shadow:
        /* 1 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 2 */
        -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.25),
        /* 3 */
        0 0 0 0 inset rgba(5, 5, 5, 0.1),
        /* 4 */
        0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.25),
        /* 5 */
        0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.25);
}

.copy-btn .button-inner {
    background-image: linear-gradient(135deg,
            rgba(33, 150, 243, 1),
            rgba(25, 118, 210, 1));
}

.clear-results-btn .button-inner {
    background-image: linear-gradient(135deg,
            rgba(255, 152, 0, 1),
            rgba(245, 124, 0, 1));
}

.copy-btn:hover .button-inner, .clear-results-btn:hover .button-inner {
    clip-path: inset(clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999vw);
    box-shadow:
        /* 1 */
        0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.75),
        /* 2 */
        -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.5),
        /* 3 */
        0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.5),
        /* 4 */
        0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.15),
        /* 5 */
        0 0 0 0 inset rgba(255, 255, 255, 1),
        /* 6 */
        0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.25),
        /* 7 */
        -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.25);
}

.copy-btn .button-inner span, .clear-results-btn .button-inner span {
    position: relative;
    z-index: 4;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    transition: transform 250ms ease;
    display: block;
    will-change: transform;
    text-shadow: rgba(0, 0, 0, 0.1) 0 0 0.1em;
    -webkit-user-select: none; 
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.copy-btn:hover .button-inner span, .clear-results-btn:hover .button-inner span {
    transform: scale(0.975);
}

.copy-btn:active .button-inner, .clear-results-btn:active .button-inner {
    transform: scale(0.975);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn:disabled .button-inner {
    background-image: linear-gradient(135deg,
            rgba(102, 102, 102, 1),
            rgba(102, 102, 102, 1));
}

.results-container {
    background-color: hsl(var(--base-hue) 25% 35% / 10%);
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
    font-family: 'Verdana', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: hsl(var(--base-hue) 25% 35% / 10%);
}

.placeholder {
    color: var(--text-color);
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

.result-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: hsl(var(--base-hue) 25% 95% / 5%);
    border: none;
    border-radius: 8px;
}

.result-item h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

.result-item .text-content {
    background-color: hsl(var(--base-hue) 25% 95% / 20%);
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-family: 'Verdana', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    color: var(--text-color);
}

.result-separator {
    margin: 20px 0;
    text-align: center;
}

.result-separator hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--text-color), transparent);
    margin: 0;
    opacity: 0.3;
}

.error-details {
    background-color: hsl(var(--base-hue) 25% 95% / 25%);
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-family: 'Verdana', monospace;
    font-size: 12px;
    color: #f44336;
    white-space: pre-wrap;
    max-height: 100px;
    overflow-y: auto;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333333;
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333333;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background-color: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
    box-sizing: border-box;
    color: #0f1111;
    cursor: pointer;
    display: inline-block;
    font-family: "Amazon Ember",sans-serif;
    font-size: 13px;
    line-height: 29px;
    padding: 0 10px 0 11px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f7fafa;
}

.close-btn:focus {
    border-color: #008296;
    box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
    outline: 0;
}

.modal-body {
    padding: 20px;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 5px;
}

.social-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333333;
}

.social-links p {
    margin-bottom: 15px;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    background-color: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
    box-sizing: border-box;
    color: #0f1111;
    cursor: pointer;
    display: inline-block;
    font-family: "Amazon Ember",sans-serif;
    font-size: 13px;
    line-height: 29px;
    padding: 0 10px 0 11px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.social-btn:hover {
    background-color: #f7fafa;
}

.social-btn:focus {
    border-color: #008296;
    box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
    outline: 0;
}

.developer-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333333;
    text-align: center;
}

.developer-info p {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.developer-info strong {
    color: #4CAF50;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 14px;
    z-index: 1001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title-container div {
        font-size: 2rem;
    }
    
    .images-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .extract-btn, .clear-btn {
        margin: 0;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .hamburger-menu {
        top: 10px;
        right: 10px;
    }
    
    .social-buttons {
        justify-content: center;
    }
    
    .notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
} 