/* ==========================================
   DAR E SAHULAT - ONLINE TOOLS STYLES (tools.php & tool-*.php)
   ========================================== */

.tool-box {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.tool-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

/* Drag & Drop Area */
.dropzone {
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.dropzone-icon {
    font-size: 3rem;
    color: var(--primary);
    pointer-events: none;
}

.dropzone-text {
    font-weight: 600;
    color: var(--navy);
    pointer-events: none;
}

.preview-container {
    margin-top: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    max-height: 400px;
}

.preview-container img,
.preview-container canvas {
    max-height: 360px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.tool-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
}

.form-control {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Tools file lists for PDF conversions */
.file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    background-color: var(--gray-100);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.file-item-name {
    font-weight: 600;
    color: var(--navy);
}

.file-item-remove {
    color: #EF4444;
    cursor: pointer;
    font-weight: bold;
}

.invoice-table th, .invoice-table td {
    padding: 10px;
}

.invoice-table .form-control {
    padding: 6px 10px;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}
