.tool-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

#dropZone {
    border: 3px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#dropZone.highlight {
    background-color: #f0f8ff;
    border-color: var(--primary-red);
}

#dropZone .tool-icon {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

#dropZone .drop-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--card-heading-text);
}

#processing-section {
    margin-top: 20px;
    text-align: center;
}

#fileName {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}
#staging-area h4 {
    text-align: center;
}
.error-message {
    color: #D32F2F;
    background-color: #FFEBEE;
    border: 1px solid #D32F2F;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    display: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.result-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active {
    opacity: 1;
    visibility: visible;
}
.modal img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid white;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--card-heading-text);
}
.tool-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tool-wrapper input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 65, 54, 0.2);
}
.center-button {
    text-align: center;
    margin-top: 30px;
}

.btn-hero.as-div { 
        pointer-events: none; 
    }
.security-info {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-color-light);
    }
.security-info .fa-lock {
    color: #28a745;
    margin-right: 5px;
}
#loadingStep {
    text-align: center;
    padding: 60px 20px;
}
.loading-spinner {
    margin: 0 auto 25px auto;
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--card-heading-text);
}
@keyframes spin {
to { transform: rotate(360deg); }
    }
    
.hidden {
    display: none;
}
.link-button {
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px;
    margin-top: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}
.link-button:hover {
    color: var(--dark-blue-text);
}