/* Using Inter font from Google Fonts */
body {
	font-family: 'Inter', sans-serif;
	background-color: #fff;
}

/* Custom scrollbar for the thumbnails container */
.pdf-thumbnails-container::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}

.pdf-thumbnails-container::-webkit-scrollbar-track {
	background: #f3f4f6; /* bg-gray-100 */
	border-radius: 6px;
}

.pdf-thumbnails-container::-webkit-scrollbar-thumb {
	background: #d1d5db; /* bg-gray-300 */
	border-radius: 6px;
}

.pdf-thumbnails-container::-webkit-scrollbar-thumb:hover {
	background: #9ca3af; /* bg-gray-400 */
}

/* Style for each thumbnail item */
.pdf-thumbnail-item {
	position: relative;
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	background-color: #fff;
	border: 1px solid #e5e7eb; /* border-gray-200 */
	border-radius: 0.375rem; /* rounded-md */
	overflow: hidden;
}

.pdf-thumbnail-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Common style for action buttons on thumbnails */
.thumbnail-action-button {
	position: absolute;
	color: white;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	opacity: 0;
	pointer-events: none;
	z-index: 10;
}

.pdf-thumbnail-item:hover .thumbnail-action-button {
	opacity: 1;
	pointer-events: auto;
}

.thumbnail-action-button:hover {
	transform: scale(1.05);
}

/* Remove button specific styles */
.remove-pdf-button {
	top: 8px;
	right: 8px;
	background-color: #ef4444; /* bg-red-500 */
}
.remove-pdf-button:hover {
	background-color: #dc2626; /* bg-red-600 */
}

/* Order buttons container */
.order-buttons-container {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	transition: opacity 0.2s ease-in-out;
	opacity: 0;
	pointer-events: none;
	z-index: 10;
}

.pdf-thumbnail-item:hover .order-buttons-container {
	opacity: 1;
	pointer-events: auto;
}

/* Order button specific styles */
.order-button {
	background-color: #3483FA;
	color: white;
	border-radius: 6px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.order-button:hover {
	background-color: #2968c8;
	transform: scale(1.05);
}

.order-button:disabled {
	background-color: #e5e7eb; /* bg-gray-200 */
	color: #9ca3af; /* text-gray-400 */
	cursor: not-allowed;
	transform: none;
}

/* Alert message styles */
#message-box {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

/* Success Alert - Verde */
#message-box.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#message-box.success::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Error Alert - Vermelho */
#message-box.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#message-box.error::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Warning Alert - Amarelo */
#message-box.warning {
    background-color: #fef9c3;
    color: #854d0e;
    border: 1px solid #fef08a;
}

#message-box.warning::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Info Alert - Azul */
#message-box.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

#message-box.info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
