/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6;
    color: #333;
}

/* Branding Title */
.branding {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 10px;
}
.branding h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #e5e7eb;
    letter-spacing: 1px;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 10px;
    background: #ffffff;
}
.card-body {
    padding: 2rem;
}

/* Form Styling */
form input[type="file"],
form input[type="text"],
form select {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.8rem;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 5px;
    transition: border 0.3s ease;
}
form input[type="file"]:hover,
form input[type="text"]:hover,
form select:hover {
    border-color: #3b82f6;
}

/* Submit Button */
.submit-btn {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}
.submit-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Shadows and Effects */
.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tooltip-container {
    position: relative; /* Needed for absolute positioning of the tooltip */
}

.tooltip-text {
    visibility: hidden;
    width: 190px; /* Tooltip width */
    background-color: #fdfdfd; /* Tooltip background color */
    color: #000000; /* Tooltip text color */
    text-align: center; /* Center text */
    border-radius: 5px; /* Rounded corners */
    padding: 5px; /* Padding inside tooltip */
    position: absolute; /* Positioning tooltip */
    z-index: 1; /* Ensure tooltip is above other elements */
    top: 20px; /* Position above the icon */
    right: 0; /* Align to the right */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s; /* Smooth transition for visibility */
}

.tooltip-container:hover .tooltip-text {
    visibility: visible; /* Show tooltip on hover */
    opacity: 1; /* Make it fully opaque */
}



/* Disabled Button (Processing State) */
#extract-btn.processing {
    background-color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner Style */
#extract-btn.processing::after {
    content: "";
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    animation: spin 0.8s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}


.info-icon {
    cursor: pointer; /* Change cursor to indicate it's clickable */
    font-weight: bold; /* Make the "i" stand out */
    color: #777; /* Change color to indicate it's informational */
    position: absolute; /* Absolute positioning for the icon */
    top: -6px; /* Adjust top position */
    right: -15px; /* Adjust right position */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .branding h1 {
        font-size: 1.75rem;
    }
    .card-body {
        padding: 1.5rem;
    }
}
