/* tools/increase-size/style.css */

/* Note: This file contains styles specific to the image increaser tool.
   Global styles are handled by Tailwind CSS classes. */

/* Drop Area Styling */
.drop-area {
    border: 2px dashed #cbd5e1; /* Gray border */
    background-color: #ffffff; /* White background */
    transition: all 0.2s ease-in-out;
}

.drop-area.highlight {
    border-color: #3b82f6; /* Blue border on drag over */
    background-color: #eff6ff; /* Light blue background on drag over */
}

/* Custom scrollbar for processed images container and file grid */
.processed-images-container::-webkit-scrollbar,
.file-preview-grid::-webkit-scrollbar {
    width: 8px;
}

.processed-images-container::-webkit-scrollbar-track,
.file-preview-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.processed-images-container::-webkit-scrollbar-thumb,
.file-preview-grid::-webkit-scrollbar-thumb {
    background: #a0aec0; /* Tailwind's gray-400 */
    border-radius: 10px;
}

.processed-images-container::-webkit-scrollbar-thumb:hover,
.file-preview-grid::-webkit-scrollbar-thumb:hover {
    background: #718096; /* Tailwind's gray-500 */
}

/* Style for individual file previews */
.file-preview {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.file-preview:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.file-preview-image {
    width: 100%;
    height: 96px; /* Smaller size */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.file-info {
    padding: 0.5rem;
    text-align: left;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: #6b7280;
}

.remove-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    padding: 0.25rem;
    color: #ef4444;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.remove-button:hover {
    opacity: 1;
}

/* Processed Result Item */
.result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.result-item:hover {
    background-color: #f3f4f6;
}

/* Responsive layout for result items on small screens */
@media (max-width: 640px) {
    .result-item {
        flex-direction: column;
        text-align: center;
    }
  	#divContainer {
        	padding: 2rem 0.5rem; 
      		}

    .result-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .result-actions {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .result-name-input {
        width: 100%;
    }

    .download-button {
        width: 100%;
    }
}

.result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.result-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.result-sizes {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.download-button {
    background-color: #2563eb;
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.download-button:hover {
    background-color: #1d4ed8;
}

/* Custom Message Box Styles */
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.message-box {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

.message-box.visible {
    transform: scale(1);
}

.message-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.message-content {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.message-close-button {
    background-color: #3b82f6;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.message-close-button:hover {
    background-color: #2563eb;
}

/* Quick Link Buttons */
.quick-link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.quick-link {
    cursor: pointer;
    transition: all 0.2s;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
